X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5dd1b7a66948c8e3aaaf4c39ea596957614bce17..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/button.cpp?ds=inline diff --git a/src/mac/carbon/button.cpp b/src/mac/carbon/button.cpp index 1c04183a78..87fa56c82b 100644 --- a/src/mac/carbon/button.cpp +++ b/src/mac/carbon/button.cpp @@ -152,7 +152,7 @@ wxSize wxButton::DoGetBestSize() const OSStatus err = m_peer->GetData( 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;