X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2919ab326e60322b63ae9b5d50e83bb5156efce..6d3ef2255e608c68954a61323176856332086368:/src/generic/statusbr.cpp?ds=sidebyside diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index fea9c6ad98..372a82a5c5 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -140,6 +140,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(),