]> git.saurik.com Git - wxWidgets.git/commitdiff
Added code to wxMemoryDC ctor to set default font. This fixes the controls
authorMichael Bedward <mbedward@ozemail.com.au>
Tue, 21 Sep 1999 03:29:16 +0000 (03:29 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Tue, 21 Sep 1999 03:29:16 +0000 (03:29 +0000)
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

index 9a6c4271c87cd066fb5bf6d3e84e6a6861eae691..166ee6b6a2e72f1c4e9652a5f63360948a6a3bdb 100644 (file)
@@ -14,6 +14,7 @@
 #endif
 
 #include "wx/dcmemory.h"
+#include "wx/settings.h"
 #include "wx/utils.h"
 
 #include <Xm/Xm.h>
@@ -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 )