From: Stefan Csomor Date: Fri, 30 Nov 2007 12:35:26 +0000 (+0000) Subject: fixing 10.5 only compiles X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e773889d7db09182ac5008cb96829b354f22faf0 fixing 10.5 only compiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/graphics.cpp b/src/mac/carbon/graphics.cpp index e4b9212d91..c255dda34f 100644 --- a/src/mac/carbon/graphics.cpp +++ b/src/mac/carbon/graphics.cpp @@ -718,8 +718,6 @@ private : wxMacCoreGraphicsFontData::wxMacCoreGraphicsFontData(wxGraphicsRenderer* renderer, const wxFont &font, const wxColour& col) : wxGraphicsObjectRefData( renderer ) { - m_macATSUIStyle = NULL; - OSStatus status = noErr; m_colour = col; m_underlined = font.GetUnderlined(); @@ -727,6 +725,8 @@ wxMacCoreGraphicsFontData::wxMacCoreGraphicsFontData(wxGraphicsRenderer* rendere m_ctFont.reset( wxCFRetain((CTFontRef) font.MacGetCTFont()) ); #endif #if wxMAC_USE_ATSU_TEXT + OSStatus status = noErr; + m_macATSUIStyle = NULL; status = ATSUCreateAndCopyStyle( (ATSUStyle) font.MacGetATSUStyle() , &m_macATSUIStyle );