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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user