]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
reversed some parts of wxGetKeyState for linkage reasons...
[wxWidgets.git] / src / msw / dialog.cpp
index 94cf00190a3113de6269602f49a32cfe8a48f219..8ec0087a81e4e2c2a0e84f552d8f34d0f6d436bd 100644 (file)
@@ -198,8 +198,8 @@ bool wxDialog::Create(wxWindow *parent,
 
     if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
         return FALSE;
-
-    SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
+    if (!m_hasFont)
+        SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
 
     return TRUE;
 }