X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9a961e1aefd34f581d2e3564ca29d7b20f9b082..824fd93d761e1e697be19a4ca582c5259e12c8ea:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 831d2d8717..372a82a5c5 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -140,11 +140,11 @@ void wxStatusBarGeneric::SetFieldsCount(int number, const int *widths) for (i = m_nFields - 1; i >= number; --i) m_statusStrings.RemoveAt(i); - wxStatusBarBase::SetFieldsCount(number, widths); - // forget the old cached pixel widths m_widthsAbs.Empty(); + wxStatusBarBase::SetFieldsCount(number, widths); + wxASSERT_MSG( m_nFields == (int)m_statusStrings.GetCount(), _T("This really should never happen, can we do away with m_nFields here?") ); }