From 9f4e08aefa9395ac29860e2bddc7b3192f797049 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 30 Nov 2007 12:34:04 +0000 Subject: [PATCH] fixing 10.5 only compiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/font.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 43fb830b87..241ae9a019 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -163,11 +163,13 @@ void wxFontRefData::Init(int pointSize, wxFontRefData::~wxFontRefData() { +#if wxMAC_USE_ATSU_TEXT if ( m_macATSUStyle ) { ::ATSUDisposeStyle((ATSUStyle)m_macATSUStyle); m_macATSUStyle = NULL ; } +#endif } #if wxMAC_USE_CORE_TEXT @@ -232,7 +234,6 @@ static CTFontRef wxMacCreateCTFont(CFStringRef iFamilyName, CTFontSymbolicTraits void wxFontRefData::MacFindFont() { - OSStatus status = noErr; #if wxMAC_USE_CORE_TEXT if ( UMAGetSystemVersion() >= 0x1050 ) @@ -298,6 +299,7 @@ void wxFontRefData::MacFindFont() #endif #if wxMAC_USE_ATSU_TEXT { + OSStatus status = noErr; Str255 qdFontName ; if ( m_macThemeFontID != kThemeCurrentPortFont ) { @@ -522,7 +524,7 @@ bool wxFont::MacCreateThemeFont(wxUint16 themeFontID) return MacCreateUIFont(HIThemeGetUIFontType(themeFontID)); } #endif -#if wxMAC_USE_CORE_TEXT +#if wxMAC_USE_ATSU_TEXT { UnRef(); @@ -532,9 +534,10 @@ bool wxFont::MacCreateThemeFont(wxUint16 themeFontID) M_FONTDATA->m_macThemeFontID = themeFontID ; RealizeResource(); + return true; } - return true; #endif + return false; } wxFont::~wxFont() -- 2.45.2