don't draw with NULL font

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-10-15 18:09:45 +00:00
parent 936895ee9d
commit a1fffa9fd5
2 changed files with 4 additions and 0 deletions

View File

@@ -762,6 +762,8 @@ void wxWindowDC::DoDrawText( const wxString &text, long x, long y )
GdkFont *font = m_font.GetInternalFont( m_scaleY );
wxCHECK_RET( font, wxT("invalid font") );
x = XLOG2DEV(x);
y = YLOG2DEV(y);