diff --git a/src/generic/fontdlgg.cpp b/src/generic/fontdlgg.cpp index 0de608cd45..359424e7ec 100644 --- a/src/generic/fontdlgg.cpp +++ b/src/generic/fontdlgg.cpp @@ -167,9 +167,7 @@ void wxGenericFontDialog::Init() { m_useEvents = FALSE; m_previewer = NULL; -#ifdef __WXMAC__ Create( m_parent ) ; -#endif } wxGenericFontDialog::~wxGenericFontDialog() @@ -183,14 +181,13 @@ void wxGenericFontDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) bool wxGenericFontDialog::DoCreate(wxWindow *parent) { -#ifdef __WXMAC__ if ( !wxDialog::Create( parent , -1 , _T("Choose Font") , wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("fontdialog") ) ) { wxFAIL_MSG( wxT("wxFontDialog creation failed") ); return FALSE; } -#endif + InitializeFont(); CreateWidgets();