Revert "Only set native label if nonempty in wxWindowMac::SetPeer()"

This reverts commit 05862e608d.

See db9baf9aa5 for the reasons.
This commit is contained in:
Václav Slavík
2016-04-30 18:57:29 +02:00
parent adb48b3c72
commit 831f360787

View File

@@ -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() )