diff --git a/src/common/resource.cpp b/src/common/resource.cpp index a3c99026f9..ac44cbc882 100644 --- a/src/common/resource.cpp +++ b/src/common/resource.cpp @@ -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 != "") {