]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/resource.cpp
Win16 corrections
[wxWidgets.git] / 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 != "")
         {