diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 5148658209..b6b25f2405 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -356,8 +356,7 @@ void wxWindowMac::SetPeer(wxOSXWidgetImpl* peer) if ( !m_hasFont ) DoSetWindowVariant( m_windowVariant ); - if ( !m_label.empty() ) - GetPeer()->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ; + GetPeer()->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ; // for controls we want to use best size for wxDefaultSize params ) if ( !GetPeer()->IsUserPane() )