]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing 10.5 only compiles
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 30 Nov 2007 12:35:26 +0000 (12:35 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 30 Nov 2007 12:35:26 +0000 (12:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/graphics.cpp

index e4b9212d91865d85b852a747a09d38603ff19cd0..c255dda34fb01c11440685ab622cf96917d12708 100644 (file)
@@ -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 );