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(); }