From a60374d0de343c7d02edc75c102097c5554e6572 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 21 Feb 2007 22:28:36 +0000 Subject: [PATCH] Oops, forgot to remove the commented out code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcgraph.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index d72c48e2a9..ff3c1c7e04 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -501,20 +501,15 @@ void wxGCDC::DoDrawEllipticArc( wxCoord x, wxCoord y, wxCoord w, wxCoord h, if ( !m_logicalFunctionSupported ) return; - bool fill = m_brush.GetStyle() != wxTRANSPARENT; - wxGraphicsPath path = m_graphicContext->CreatePath(); m_graphicContext->PushState(); m_graphicContext->Translate(x+w/2.0,y+h/2.0); wxDouble factor = ((wxDouble) w) / h; m_graphicContext->Scale( factor , 1.0); -// if ( fill && (sa!=ea) ) -// path.MoveToPoint(0,0); + // since these angles (ea,sa) are measured counter-clockwise, we invert them to // get clockwise angles path.AddArc( 0, 0, h/2.0 , DegToRad(-sa) , DegToRad(-ea), sa > ea ); -// if ( fill && (sa!=ea) ) -// path.AddLineToPoint(0,0); m_graphicContext->DrawPath( path ); m_graphicContext->PopState(); }