From: Stefan Csomor Date: Wed, 28 Nov 2012 10:13:41 +0000 (+0000) Subject: support for inheriting non-standard attributes (explicit fonts instead of window... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cb04da13bddf9c70028b7adb55ac4efbb92ce4d4?ds=inline support for inheriting non-standard attributes (explicit fonts instead of window variants), fixes #3583 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index fadfabf4bd..6e941b3166 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -350,7 +350,11 @@ void wxWindowMac::SetPeer(wxOSXWidgetImpl* peer) GetParent()->MacChildAdded() ; // adjust font, controlsize etc - DoSetWindowVariant( m_windowVariant ) ; + GetPeer()->SetControlSize( m_windowVariant ); + InheritAttributes(); + // in case nothing has been set, use the variant default fonts + if ( !m_hasFont ) + DoSetWindowVariant( m_windowVariant ); GetPeer()->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ;