diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 380209a608..100387dcff 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -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 ); } }