]> git.saurik.com Git - wxWidgets.git/commitdiff
Added a line to set m_font in the wxWindowDC ctor (with window arg) so that GetTextEx...
authorMichael Bedward <mbedward@ozemail.com.au>
Thu, 5 Aug 1999 06:14:06 +0000 (06:14 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Thu, 5 Aug 1999 06:14:06 +0000 (06:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/dcclient.cpp

index 1d4cca656062ef8003b021c7134d04ccdb1c57ff..bda0770424270cf3170a99f478689707a1b331a6 100644 (file)
@@ -127,6 +127,7 @@ wxWindowDC::wxWindowDC( wxWindow *window )
     wxASSERT_MSG( (window != (wxWindow*) NULL), "You must pass a valid wxWindow to wxWindowDC/wxClientDC/wxPaintDC constructor." );
 
     m_window = window;
+    m_font = window->GetFont();
     m_gc = (WXGC) 0;
     m_gcBacking = (WXGC) 0;
     m_backgroundPixel = -1;