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:
@@ -78,9 +78,9 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
|
|||||||
style[i] = wxSB_FLAT;
|
style[i] = wxSB_FLAT;
|
||||||
else if (first == wxT("wxSB_RAISED"))
|
else if (first == wxT("wxSB_RAISED"))
|
||||||
style[i] = wxSB_RAISED;
|
style[i] = wxSB_RAISED;
|
||||||
|
else if (!first.empty())
|
||||||
if (!first.empty())
|
|
||||||
wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
|
wxLogError(wxT("Error in resource, unknown statusbar field style: ") + first);
|
||||||
|
|
||||||
if(styles.Find(wxT(',')))
|
if(styles.Find(wxT(',')))
|
||||||
styles.Remove(0, styles.Find(wxT(',')) + 1);
|
styles.Remove(0, styles.Find(wxT(',')) + 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user