don't give spurious error message if non-empty status bar field style is specified in XRC (patch 1791037)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-09 21:32:44 +00:00
parent 5f77ee3b87
commit 6f6a69cb55

View File

@@ -78,9 +78,9 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
style[i] = wxSB_FLAT;
else if (first == wxT("wxSB_RAISED"))
style[i] = wxSB_RAISED;
if (!first.empty())
else if (!first.empty())
wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
if(styles.Find(wxT(',')))
styles.Remove(0, styles.Find(wxT(',')) + 1);
}