Revert "Only set native label if nonempty in wxWindowMac::SetPeer()"
This reverts commit05862e608d
. Seedb9baf9aa5
for the reasons.
This commit is contained in:
@@ -356,8 +356,7 @@ void wxWindowMac::SetPeer(wxOSXWidgetImpl* peer)
|
|||||||
if ( !m_hasFont )
|
if ( !m_hasFont )
|
||||||
DoSetWindowVariant( m_windowVariant );
|
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 )
|
// for controls we want to use best size for wxDefaultSize params )
|
||||||
if ( !GetPeer()->IsUserPane() )
|
if ( !GetPeer()->IsUserPane() )
|
||||||
|
Reference in New Issue
Block a user