]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/statusbr.cpp
don't restrict to OS9 API for Mac-Builds
[wxWidgets.git] / src / generic / statusbr.cpp
index fea9c6ad980349d54f4849cacf6e568521cda2bd..203295199ac45ee3fd24ac7731695aa0c5368102 100644 (file)
@@ -68,7 +68,9 @@ wxStatusBarGeneric::~wxStatusBarGeneric()
 {
     // VZ: what is this for? please comment...
 #ifdef __WXMSW__
-    SetFont(wxNullFont);
+    // JACS: commenting out since it causes an assert
+    // and there seems no reason for it.
+    // SetFont(wxNullFont);
 #endif // MSW
 }
 
@@ -140,6 +142,9 @@ void wxStatusBarGeneric::SetFieldsCount(int number, const int *widths)
     for (i = m_nFields - 1; i >= number; --i)
         m_statusStrings.RemoveAt(i);
 
+    // forget the old cached pixel widths
+    m_widthsAbs.Empty();
+
     wxStatusBarBase::SetFieldsCount(number, widths);
 
     wxASSERT_MSG( m_nFields == (int)m_statusStrings.GetCount(),