From 6f6a69cb55382b4ba9d31f486c0bc9cc83524f1c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 9 Sep 2007 21:32:44 +0000 Subject: [PATCH] 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 --- src/xrc/xh_statbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrc/xh_statbar.cpp b/src/xrc/xh_statbar.cpp index c982570ded..fe14c250d7 100644 --- a/src/xrc/xh_statbar.cpp +++ b/src/xrc/xh_statbar.cpp @@ -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); } -- 2.45.2