From d64b1c760b00daf0b6ea2ab6fbd14d624eecfa7c Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Tue, 24 Aug 2004 01:33:15 +0000 Subject: [PATCH] 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 --- src/generic/statusbr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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?") ); } -- 2.45.2