]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbr95.cpp
added test mode to wxLongLongWx which allowed to find the bug in operator*=()
[wxWidgets.git] / src / msw / statbr95.cpp
index 5f91a3c092051fba525872a01a89b40d5b367687..8a0063d0b1ab81b1da4a0a76dde6c00e811236ba 100644 (file)
 
 #if wxUSE_NATIVE_STATUSBAR
 
-#if     !USE_SHARED_LIBRARY
   IMPLEMENT_DYNAMIC_CLASS(wxStatusBar95, wxStatusBar);
 
   BEGIN_EVENT_TABLE(wxStatusBar95, wxStatusBar)
     EVT_SIZE(wxStatusBar95::OnSize)
   END_EVENT_TABLE()
-#endif  //USE_SHARED_LIBRARY
 
 
 // ----------------------------------------------------------------------------
@@ -147,6 +145,9 @@ void wxStatusBar95::SetStatusWidths(int n, const int widths[])
 
 void wxStatusBar95::SetFieldsWidth()
 {
+    if ( !m_nFields )
+        return;
+
   int *pWidths = new int[m_nFields];
 
   int nWindowWidth, y;