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/branches/WX_2_8_BRANCH@48617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-09 21:32:44 +00:00
parent 1d497cf7db
commit 58d7052775

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);
}