]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/resource.cpp
fixed some glitches
[wxWidgets.git] / src / common / resource.cpp
index 347446ea8b1900b7eaf5824fabb28155f998458c..ac44cbc88210254f9bdd79d59af48743ff515df7 100644 (file)
@@ -824,9 +824,13 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, wxExpr *expr)
     if (expr->Nth(count) && ((expr->Nth(count)->Type() == PrologString) || (expr->Nth(count)->Type() == PrologWord)))
     {
         wxString str(expr->Nth(count)->StringValue());
-        controlItem->SetValue4(str);
         count ++;
-        controlItem->SetType("wxBitmapButton");
+
+        if (str != "")
+        {
+            controlItem->SetValue4(str);
+            controlItem->SetType("wxBitmapButton");
+        }
     }
     if (expr->Nth(count) && expr->Nth(count)->Type() == PrologList)
       controlItem->SetFont(wxResourceInterpretFontSpec(expr->Nth(count)));