]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/button.cpp
don't set m_font upfront in wxMac, let the GetDefaultAttributes mechanism used by...
[wxWidgets.git] / src / mac / carbon / button.cpp
index 1c04183a780c5c4870bc36300e4e93e5939e5703..87fa56c82bc0f5bc6f86603b175f066e94fac100 100644 (file)
@@ -152,7 +152,7 @@ wxSize wxButton::DoGetBestSize() const
         OSStatus err = m_peer->GetData<ControlFontStyleRec>( kControlEntireControl, kControlFontStyleTag, &controlFont );
         verify_noerr( err );
 
-        wxCFStringRef str( m_label,  m_font.GetEncoding() );
+        wxCFStringRef str( m_label,  GetFont().GetEncoding() );
 
 #if wxMAC_USE_ATSU_TEXT
         SInt16 baseline;