aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Geo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/Geo.c b/generic/Geo.c
index c0a3e80..b1ec972 100644
--- a/generic/Geo.c
+++ b/generic/Geo.c
@@ -2250,10 +2250,10 @@ GetCirclePoints(int type,
if (end_angle < 0.0) {
end_angle += 2.0*M_PI;
}
- if (start_angle >= end_angle) {
- if (start_angle == end_angle) {
- type = 3;
- }
+ if (start_angle == end_angle) {
+ type = 3;
+ }
+ if (start_angle > end_angle) {
iangle = start_angle;
start_angle = end_angle;
end_angle = iangle;