]> git.saurik.com Git - wxWidgets.git/commitdiff
count++ bug corrected (patch from Dino Scaringella)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 31 Mar 1999 13:35:03 +0000 (13:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 31 Mar 1999 13:35:03 +0000 (13:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/resource.cpp

index a3c99026f98bdb641574d018b8d4b6ee101b35a8..ac44cbc88210254f9bdd79d59af48743ff515df7 100644 (file)
@@ -823,8 +823,8 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, wxExpr *expr)
     // Check for bitmap resource name (in case loading old-style resource file)
     if (expr->Nth(count) && ((expr->Nth(count)->Type() == PrologString) || (expr->Nth(count)->Type() == PrologWord)))
     {
-        count ++;
         wxString str(expr->Nth(count)->StringValue());
+        count ++;
 
         if (str != "")
         {