From a1d9fc2426f8c5a878bd1de7ad2b4b43d190acb8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 7 Mar 2007 23:29:49 +0000 Subject: [PATCH] avoid flicker when setting the text which is the same as the current status bar pane value (patch 1669140) [backport from HEAD] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbr95.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index c17ff4cc57..52d64680ee 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -189,6 +189,12 @@ void wxStatusBar95::SetStatusText(const wxString& strText, int nField) wxCHECK_RET( (nField >= 0) && (nField < m_nFields), _T("invalid statusbar field index") ); + if ( strText == GetStatusText(nField) ) + { + // don't call StatusBar_SetText() to avoid flicker + return; + } + // Get field style, if any int style; if (m_statusStyles)