]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid flicker when setting the text which is the same as the current status bar pane...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Mar 2007 23:28:41 +0000 (23:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 7 Mar 2007 23:28:41 +0000 (23:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbr95.cpp

index c17ff4cc5744291e70b89437143cf806a3e147c7..52d64680ee6efc1cbf8c30a41a1dddbec8128746 100644 (file)
@@ -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)