X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2919ab326e60322b63ae9b5d50e83bb5156efce..18a82b9cd35b9c91ff381b6b34922788a8d9b897:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index fea9c6ad98..203295199a 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -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(),