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:
@@ -567,7 +567,8 @@ void wxGCDC::SetFont( const wxFont &font )
|
|||||||
if ( m_graphicContext )
|
if ( m_graphicContext )
|
||||||
{
|
{
|
||||||
wxFont f = font ;
|
wxFont f = font ;
|
||||||
f.SetPointSize( LogicalToDeviceYRel(font.GetPointSize())) ;
|
if ( f.Ok() )
|
||||||
|
f.SetPointSize( LogicalToDeviceYRel(font.GetPointSize())) ;
|
||||||
m_graphicContext->SetFont( f );
|
m_graphicContext->SetFont( f );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user