From 6d60b98dc8b7570461798e348ebc774cca3e182e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 23 Jun 2019 20:55:01 -0700 Subject: [PATCH] Fix bug in tesselation When we hit a self-intersection, we need to be careful that we don't lose the stop vertex. Fixes: lp:1833819 * https://bugs.launchpad.net/kicad/+bug/1833819 --- include/geometry/polygon_triangulation.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/geometry/polygon_triangulation.h b/include/geometry/polygon_triangulation.h index c1c0dbfdf7..fd00d04081 100644 --- a/include/geometry/polygon_triangulation.h +++ b/include/geometry/polygon_triangulation.h @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Modifications Copyright (C) 2018 KiCad Developers + * Modifications Copyright (C) 2018-2019 KiCad Developers * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -420,6 +420,7 @@ private: aPoint->remove(); aPoint = nextNext; + stop = nextNext; continue; }