]> git.saurik.com Git - wxWidgets.git/commitdiff
bug with multi-part status bars with default widths corrected
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Jul 1998 22:29:11 +0000 (22:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Jul 1998 22:29:11 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbr95.cpp

index efc4a698c8882c160e5fc502ddb59e19f5764985..0b737b9e1dcb72fd9bb3f44b5df1af909c2fcecc 100644 (file)
@@ -161,7 +161,7 @@ void wxStatusBar95::SetFieldsWidth()
     // default: all fields have the same width
     int nWidth = nWindowWidth / m_nFields;
     for ( int i = 0; i < m_nFields; i++ )
-      pWidths[i] = (i + 1) * nWindowWidth;
+      pWidths[i] = (i + 1) * nWidth;
   }
   else {
     // -1 doesn't mean the same thing for wxWindows and Win32, recalc