]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/fontdlg.cpp
corrected off by 1 error in cMB2WC() call (thanks valgrind)
[wxWidgets.git] / src / gtk / fontdlg.cpp
index c95411e3709b872ffd81097169b0e3e7dbb38b28..cb99b9c398b77ef9db5be5c8247b212c9f31f799 100644 (file)
@@ -86,7 +86,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
 
 bool wxFontDialog::DoCreate(wxWindow *parent)
 {
-    m_needParent = false;
+    parent = GetParentForModalDialog(parent);
 
     if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||
         !CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE,