]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
don't mark GetTraceMask() deprecated as we use it in the same header which provokes...
[wxWidgets.git] / src / osx / window_osx.cpp
index a79dbea936d28d1361e956105f2341089eb61e37..9e96180e7f7b065f8ed4fa50072d719c985a5f68 100644 (file)
@@ -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() ) ;