#include "wx/fontdlg.h"
#include "wx/fontutil.h"
+#include "wx/testing.h"
#if wxOSX_USE_EXPERIMENTAL_FONTDIALOG
{
bool setup = false ;
#if wxOSX_USE_CORE_TEXT
- if ( UMAGetSystemVersion() >= 0x1050 )
+ if ( !setup )
{
CTFontDescriptorRef descr;
if ( cEvent.GetParameter<CTFontDescriptorRef>( kEventParamCTFontDescriptor, typeCTFontDescriptorRef, &descr ) == noErr )
int wxFontDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
#if wxOSX_USE_CARBON
OSStatus err ;
bool setup = false;
#if wxOSX_USE_CORE_TEXT
- if ( UMAGetSystemVersion() >= 0x1050 )
+ if ( !setup )
{
CTFontDescriptorRef descr = (CTFontDescriptorRef) CTFontCopyFontDescriptor( (CTFontRef) font.OSXGetCTFont() );
err = SetFontInfoForSelection (kFontSelectionCoreTextType,1, &descr , NULL);