]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/fontpickerg.cpp
floating pane size now restores after perspective restore
[wxWidgets.git] / src / generic / fontpickerg.cpp
index 06a5c5c539fd8a0a3d9c290edd63756ffe770924..26f9908d7df1dd05c4ea60136f016cbebe1f0403 100644 (file)
@@ -64,7 +64,7 @@ bool wxGenericFontButton::Create( wxWindow *parent, wxWindowID id,
             wxCommandEventHandler(wxGenericFontButton::OnButtonClick),
             NULL, this);
 
-    m_selectedFont = initial;
+    m_selectedFont = initial.IsOk() ? initial : *wxNORMAL_FONT;
     UpdateFont();
     InitFontData();