From 624ae512fc1378d3f0aafaf84b706a7e5dfab249 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Tue, 11 Jul 2023 15:25:39 +0000 Subject: [PATCH] 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. --- plug-ins/gfig/gfig-arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/gfig/gfig-arc.c b/plug-ins/gfig/gfig-arc.c index a2f6fcc70d..fdace8957e 100644 --- a/plug-ins/gfig/gfig-arc.c +++ b/plug-ins/gfig/gfig-arc.c @@ -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;