count++ bug corrected (patch from Dino Scaringella)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-31 13:35:03 +00:00
parent 3c1b65a4a8
commit b29518f8f9

View File

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