invalidate field-width cache before refreshing (Mac redraws immediately)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth 2004-08-24 01:33:15 +00:00
parent f9a961e1ae
commit d64b1c760b

View File

@ -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?") );
}