invalidate field-width cache when changing field count

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2004-08-23 22:27:11 +00:00
parent aa0cc8a14c
commit f9a961e1ae

View File

@@ -142,6 +142,9 @@ void wxStatusBarGeneric::SetFieldsCount(int number, const int *widths)
wxStatusBarBase::SetFieldsCount(number, widths); wxStatusBarBase::SetFieldsCount(number, widths);
// forget the old cached pixel widths
m_widthsAbs.Empty();
wxASSERT_MSG( m_nFields == (int)m_statusStrings.GetCount(), wxASSERT_MSG( m_nFields == (int)m_statusStrings.GetCount(),
_T("This really should never happen, can we do away with m_nFields here?") ); _T("This really should never happen, can we do away with m_nFields here?") );
} }