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

(cherry picked from commit 6d60b98dc8)
This commit is contained in:
Seth Hillbrand 2019-06-23 20:55:01 -07:00
parent f265a52c96
commit aa9897d932
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}