]> git.saurik.com Git - wxWidgets.git/commitdiff
Set fields count even if don't have widthds
authorJulian Smart <julian@anthemion.co.uk>
Tue, 18 May 2004 16:03:01 +0000 (16:03 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 18 May 2004 16:03:01 +0000 (16:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xh_statbar.cpp
src/xrc/xh_statbar.cpp

index 60e1a894fef76591fbb44633c56d6f802b00212f..a5e04452efcf9e60f89b120914d44b58f740c0df 100644 (file)
@@ -61,6 +61,8 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
         statbar->SetFieldsCount(fields, width);
         delete[] width;
     }
+    else
+        statbar->SetFieldsCount(fields);
 
     if (m_parentAsWindow)
     {
index 60e1a894fef76591fbb44633c56d6f802b00212f..a5e04452efcf9e60f89b120914d44b58f740c0df 100644 (file)
@@ -61,6 +61,8 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
         statbar->SetFieldsCount(fields, width);
         delete[] width;
     }
+    else
+        statbar->SetFieldsCount(fields);
 
     if (m_parentAsWindow)
     {