From 5da3bdb4eabc1f6938432b640299b3b97f6eea09 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 28 Jan 2018 15:24:29 +0100 Subject: [PATCH] app: fix GimpToolCompass for one perfectly vertical line the angle arc and the small helper line were displayed on opposite sides of the first point. Now they are on the same side, just like for all other angles. --- app/display/gimptoolcompass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/display/gimptoolcompass.c b/app/display/gimptoolcompass.c index 1abb50f87b..191ceba252 100644 --- a/app/display/gimptoolcompass.c +++ b/app/display/gimptoolcompass.c @@ -519,7 +519,7 @@ gimp_tool_compass_changed (GimpToolWidget *widget) gimp_canvas_line_set (private->angle_line, private->x[0], private->y[0], - private->x[0] + (private->x[1] >= private->x[0] ? + private->x[0] + (private->x[1] > private->x[0] ? (arc_radius + target) : -(arc_radius + target)), private->y[0]);