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:
@@ -140,11 +140,11 @@ void wxStatusBarGeneric::SetFieldsCount(int number, const int *widths)
|
|||||||
for (i = m_nFields - 1; i >= number; --i)
|
for (i = m_nFields - 1; i >= number; --i)
|
||||||
m_statusStrings.RemoveAt(i);
|
m_statusStrings.RemoveAt(i);
|
||||||
|
|
||||||
wxStatusBarBase::SetFieldsCount(number, widths);
|
|
||||||
|
|
||||||
// forget the old cached pixel widths
|
// forget the old cached pixel widths
|
||||||
m_widthsAbs.Empty();
|
m_widthsAbs.Empty();
|
||||||
|
|
||||||
|
wxStatusBarBase::SetFieldsCount(number, widths);
|
||||||
|
|
||||||
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?") );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user