]> git.saurik.com Git - wxWidgets.git/commitdiff
Must update iterator to avoid infinite loop
authorMattia Barbon <mbarbon@cpan.org>
Mon, 18 Jun 2007 19:23:09 +0000 (19:23 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Mon, 18 Jun 2007 19:23:09 +0000 (19:23 +0000)
in case backend initialization fails.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/mediactrlcmn.cpp

index 8812a48efcfba756b769292ad10200982f93969f..6120cada491a7cebc59b3a9affa3c072d0d0838e 100644 (file)
@@ -254,6 +254,7 @@ const wxClassInfo* wxMediaCtrl::NextBackend(wxClassInfo::const_iterator* it)
         if ( classInfo->IsKindOf(CLASSINFO(wxMediaBackend)) &&
              classInfo != CLASSINFO(wxMediaBackend) )
         {
+            ++(*it);
             return classInfo;
         }
     }