]> git.saurik.com Git - wxWidgets.git/commitdiff
Initialize the field count in Create(). It was using a garbage value
authorRobin Dunn <robin@alldunn.com>
Mon, 13 Mar 2000 17:12:31 +0000 (17:12 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 13 Mar 2000 17:12:31 +0000 (17:12 +0000)
and causing havoc...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbr95.cpp

index 2820bef97cbf9a625e2d280bada53ef263695f50..86937ad4a9f7ae4c8b051ab700c6807ebd2e4065 100644 (file)
@@ -123,6 +123,8 @@ bool wxStatusBar95::Create(wxWindow *parent,
         return FALSE;
     }
 
+    SetFieldsCount(1);
+
     // we can't subclass this window as usual because the status bar window
     // proc processes WM_SIZE and WM_PAINT specially
     //  SubclassWin(m_hWnd);