]> git.saurik.com Git - wxWidgets.git/commitdiff
make sure that code is always available when compiling for 10.4, whatever flavour
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 13 Jan 2009 04:54:21 +0000 (04:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 13 Jan 2009 04:54:21 +0000 (04:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/font.cpp

index e2ef869e59e68007deec98a49548236bff885ee4..d1c72dac0714815c868eacbfb2e42536a5f12378 100644 (file)
@@ -754,7 +754,7 @@ bool wxFont::MacCreateFromCTFontDescriptor( const void * ctFontDescriptor , int
 
 #endif
 
-#if wxOSX_USE_CARBON
+#if wxOSX_USE_ATSU_TEXT
 bool wxFont::MacCreateFromThemeFont(wxUint16 themeFontID)
 {
 #if wxOSX_USE_CORE_TEXT
@@ -763,7 +763,6 @@ bool wxFont::MacCreateFromThemeFont(wxUint16 themeFontID)
         return MacCreateFromUIFont(HIThemeGetUIFontType(themeFontID));
     }
 #endif
-#if wxOSX_USE_ATSU_TEXT
     {
         UnRef();
 
@@ -775,7 +774,6 @@ bool wxFont::MacCreateFromThemeFont(wxUint16 themeFontID)
         RealizeResource();
         return true;
     }
-#endif
     return false;
 }
 #endif