From 0ba1a6f33c675ddd7ef836f09f4c0cc5a5936f89 Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Tue, 21 Sep 1999 03:29:16 +0000 Subject: [PATCH] Added code to wxMemoryDC ctor to set default font. This fixes the controls sample which was crashing when calling wxDC::DrawText. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/dcmemory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/motif/dcmemory.cpp b/src/motif/dcmemory.cpp index 9a6c4271c8..166ee6b6a2 100644 --- a/src/motif/dcmemory.cpp +++ b/src/motif/dcmemory.cpp @@ -14,6 +14,7 @@ #endif #include "wx/dcmemory.h" +#include "wx/settings.h" #include "wx/utils.h" #include @@ -50,6 +51,7 @@ wxMemoryDC::wxMemoryDC(void) m_oldFont = (WXFont) valReturn.font; SetBrush (* wxWHITE_BRUSH); SetPen (* wxBLACK_PEN); + SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT)); }; wxMemoryDC::wxMemoryDC( wxDC* dc ) -- 2.45.2