From 823b6635f6be00ef24a858b9766c601d9227b920 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 7 Mar 2007 23:28:41 +0000 Subject: [PATCH] avoid flicker when setting the text which is the same as the current status bar pane value (patch 1669140) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44664 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) -- 2.50.0