[gimp] app: fix GimpToolCompass for one perfectly vertical line
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix GimpToolCompass for one perfectly vertical line
- Date: Sun, 28 Jan 2018 14:27:02 +0000 (UTC)
commit 5da3bdb4eabc1f6938432b640299b3b97f6eea09
Author: Michael Natterer <mitch gimp org>
Date: Sun Jan 28 15:24:29 2018 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimptoolcompass.c b/app/display/gimptoolcompass.c
index 1abb50f..191ceba 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]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]