From: Paul Cornett Date: Wed, 11 Jul 2012 07:05:55 +0000 (+0000) Subject: remove code in SetFont which modifies font for no apparent purpose X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8bcf695ecde5f098fe603c300aa30bf096519785?ds=sidebyside remove code in SetFont which modifies font for no apparent purpose git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index fb05146587..19b8124b77 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -441,10 +441,7 @@ void wxGCDCImpl::SetFont( const wxFont &font ) m_font = font; if ( m_graphicContext ) { - wxFont f = font; - if ( f.IsOk() ) - f.SetPointSize( /*LogicalToDeviceYRel*/(font.GetPointSize())); - m_graphicContext->SetFont( f, m_textForegroundColour ); + m_graphicContext->SetFont(font, m_textForegroundColour); } }