diff --git a/src/qt/dc.cpp b/src/qt/dc.cpp index a60a255ba1..246a5b38cd 100644 --- a/src/qt/dc.cpp +++ b/src/qt/dc.cpp @@ -498,8 +498,17 @@ void wxQtDCImpl::DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h, y += penWidth / 2; w -= penWidth; h -= penWidth; - - m_qtPainter->drawPie( x, y, w, h, (int)( sa * 16 ), (int)( ( ea - sa ) * 16 ) ); + + double spanAngle = sa - ea; + if (spanAngle < -180) + spanAngle += 360; + if (spanAngle > 180) + spanAngle -= 360; + + if ( spanAngle == 0 ) + m_qtPainter->drawEllipse( x, y, w, h ); + else + m_qtPainter->drawPie( x, y, w, h, (int)( sa * 16 ), (int)( ( ea - sa ) * 16 ) ); } void wxQtDCImpl::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)