removing 10.5 version checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,7 +78,7 @@ wxMacCarbonFontPanelHandler(EventHandlerCallRef WXUNUSED(nextHandler),
|
|||||||
{
|
{
|
||||||
bool setup = false ;
|
bool setup = false ;
|
||||||
#if wxOSX_USE_CORE_TEXT
|
#if wxOSX_USE_CORE_TEXT
|
||||||
if ( UMAGetSystemVersion() >= 0x1050 )
|
if ( !setup )
|
||||||
{
|
{
|
||||||
CTFontDescriptorRef descr;
|
CTFontDescriptorRef descr;
|
||||||
if ( cEvent.GetParameter<CTFontDescriptorRef>( kEventParamCTFontDescriptor, typeCTFontDescriptorRef, &descr ) == noErr )
|
if ( cEvent.GetParameter<CTFontDescriptorRef>( kEventParamCTFontDescriptor, typeCTFontDescriptorRef, &descr ) == noErr )
|
||||||
@@ -243,7 +243,7 @@ int wxFontDialog::ShowModal()
|
|||||||
|
|
||||||
bool setup = false;
|
bool setup = false;
|
||||||
#if wxOSX_USE_CORE_TEXT
|
#if wxOSX_USE_CORE_TEXT
|
||||||
if ( UMAGetSystemVersion() >= 0x1050 )
|
if ( !setup )
|
||||||
{
|
{
|
||||||
CTFontDescriptorRef descr = (CTFontDescriptorRef) CTFontCopyFontDescriptor( (CTFontRef) font.OSXGetCTFont() );
|
CTFontDescriptorRef descr = (CTFontDescriptorRef) CTFontCopyFontDescriptor( (CTFontRef) font.OSXGetCTFont() );
|
||||||
err = SetFontInfoForSelection (kFontSelectionCoreTextType,1, &descr , NULL);
|
err = SetFontInfoForSelection (kFontSelectionCoreTextType,1, &descr , NULL);
|
||||||
|
Reference in New Issue
Block a user