From: Vadim Zeitlin Date: Mon, 22 Jun 2009 20:07:50 +0000 (+0000) Subject: invalidate best window size when its label changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8c6c5778c204a24d0d6b24046eca41e141cc4f25 invalidate best window size when its label changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index a79dbea936..9e96180e7f 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -1019,8 +1019,13 @@ void wxWindowMac::DoSetClientSize(int clientwidth, int clientheight) void wxWindowMac::SetLabel(const wxString& title) { + if ( title == m_label ) + return; + m_label = title ; + InvalidateBestSize(); + if ( m_peer && m_peer->IsOk() ) m_peer->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ;