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.
This commit is contained in:
Michael Natterer 2018-01-28 15:24:29 +01:00
parent c71535b72a
commit 5da3bdb4ea
1 changed files with 1 additions and 1 deletions

View File

@ -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]);