getting rid of redundant redraws

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-02-15 06:03:59 +00:00
parent 1bf38b0eda
commit b610b1db09

View File

@@ -107,6 +107,9 @@ void wxStatusBarMac::SetStatusText(const wxString& text, int number)
wxCHECK_RET( (number >= 0) && (number < m_nFields),
_T("invalid status bar field index") );
if ( m_statusStrings[number] == text )
return ;
m_statusStrings[number] = text;
wxRect rect;
GetFieldRect(number, rect);