Added a line to set m_font in the wxWindowDC ctor (with window arg) so that GetTextExtent will work properly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward 1999-08-05 06:14:06 +00:00
parent 645ab2ee26
commit 60f5b8804b

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