X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/170acdc90e9f92f8b8120fa6c04acdbf45c89582..3aba082d50ed54fdde8993f0a1754cc93d2429ea:/src/gtk/fontpicker.cpp?ds=sidebyside diff --git a/src/gtk/fontpicker.cpp b/src/gtk/fontpicker.cpp index eda8022cc1..bc24c2e8d8 100644 --- a/src/gtk/fontpicker.cpp +++ b/src/gtk/fontpicker.cpp @@ -73,7 +73,7 @@ bool wxFontButton::Create( wxWindow *parent, wxWindowID id, m_widget = gtk_font_button_new(); // set initial font - m_selectedFont = initial; + m_selectedFont = initial.IsOk() ? initial : *wxNORMAL_FONT; UpdateFont(); // honour the fontbutton styles