plug-ins: Fix typo in gfig-arc

Resolves #5742.
The check is for a horizontal line (where the Y coordinate
would be the same for all three points), but the X axis was
checked instead due to a copy/paste error.
This commit is contained in:
Alx Sa 2023-07-11 15:25:39 +00:00
parent ae29736ee0
commit 624ae512fc

View file

@ -270,7 +270,7 @@ arc_details (GdkPoint *vert_a,
if (ay == by || by == cy || ay == cy)
{
/* Horz line -> midpoint gives inter_y */
if (ax == bx && bx == cx)
if (ay == by && by == cy)
{
/* Straight line */
double minx = ax;