setting a non valid font is permitted, implemented now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-10-20 19:29:30 +00:00
parent 04bad5edef
commit 8bf12709e9

View File

@@ -567,7 +567,8 @@ void wxGCDC::SetFont( const wxFont &font )
if ( m_graphicContext )
{
wxFont f = font ;
f.SetPointSize( LogicalToDeviceYRel(font.GetPointSize())) ;
if ( f.Ok() )
f.SetPointSize( LogicalToDeviceYRel(font.GetPointSize())) ;
m_graphicContext->SetFont( f );
}
}