From f0ec14a33c0a146bdb9b78fc97d35b0902c8acc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gil=20Benk=C3=B6?= <38266358+GilBenkoe@users.noreply.github.com> Date: Wed, 29 Sep 2021 16:44:54 +0200 Subject: [PATCH] GLView: Handle full circle case --- src/pathview/glview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pathview/glview.cpp b/src/pathview/glview.cpp index 646d21c4..deda262a 100644 --- a/src/pathview/glview.cpp +++ b/src/pathview/glview.cpp @@ -1461,10 +1461,10 @@ void *GLView::arc(float x, float y, float radius, float startAngle, float endAng float startY = 0.0f; float totalAngle; - if (anticlockwise && (startAngle > endAngle)) { + if (anticlockwise && (startAngle >= endAngle)) { totalAngle = std::fabs(endAngle - (startAngle - 2.0f * PI_F)); } - else if (!anticlockwise && (startAngle < endAngle)) { + else if (!anticlockwise && (startAngle <= endAngle)) { totalAngle = std::fabs(endAngle - (startAngle + 2.0f * PI_F)); } else {