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