]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 816023 ] wxDialog overrides font setting
authorJulian Smart <julian@anthemion.co.uk>
Thu, 11 Dec 2003 09:10:03 +0000 (09:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 11 Dec 2003 09:10:03 +0000 (09:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;
 }