]> git.saurik.com Git - wxWidgets.git/commitdiff
remove code in SetFont which modifies font for no apparent purpose
authorPaul Cornett <paulcor@bullseye.com>
Wed, 11 Jul 2012 07:05:55 +0000 (07:05 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 11 Jul 2012 07:05:55 +0000 (07:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcgraph.cpp

index fb05146587538f5fc9f9d20dd1ebb9b43252bea9..19b8124b77b8d49169facb3bf83278a2ba50caf8 100644 (file)
@@ -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);
     }
 }