From 65bfeb6ea8ff9704a541f71b6930f52e5ed0b94c Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:20:29 +0200 Subject: [PATCH] Small fix for path intersections --- extensions/fablabchemnitz_path_intersections.inx | 2 +- extensions/fablabchemnitz_path_intersections.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/fablabchemnitz_path_intersections.inx b/extensions/fablabchemnitz_path_intersections.inx index cfe26438..26ca0bb8 100644 --- a/extensions/fablabchemnitz_path_intersections.inx +++ b/extensions/fablabchemnitz_path_intersections.inx @@ -15,4 +15,4 @@ - + \ No newline at end of file diff --git a/extensions/fablabchemnitz_path_intersections.py b/extensions/fablabchemnitz_path_intersections.py index 7000b824..6c07412f 100644 --- a/extensions/fablabchemnitz_path_intersections.py +++ b/extensions/fablabchemnitz_path_intersections.py @@ -248,9 +248,8 @@ class IntersectionChecker(Checker): subpaths.append(raw[prev:]) seg = [] for simpath in subpaths: - closed = False if simpath[-1][0] == 'Z': - closed = True + simpath[-1][0] = 'L' if simpath[-2][0] == 'L': simpath[-1][1] = simpath[0][1] else: simpath.pop() for i in range(len(simpath)): @@ -421,4 +420,4 @@ class Precut(inkex.Effect): if __name__ == "__main__": logging.basicConfig(stream=sys.stderr, level=logging.WARNING, format="%(levelname)s %(message)s") - Precut().run() \ No newline at end of file + Precut().run()