From 69ba527db0a89485665490253f6f06c92efa1f82 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 9 Aug 2020 00:06:19 +0200 Subject: [PATCH] Stabilized Chain Paths --- extensions/fablabchemnitz_chain_paths.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extensions/fablabchemnitz_chain_paths.py b/extensions/fablabchemnitz_chain_paths.py index 1bdbbe64..478f9aaa 100644 --- a/extensions/fablabchemnitz_chain_paths.py +++ b/extensions/fablabchemnitz_chain_paths.py @@ -262,9 +262,10 @@ class ChainPaths(inkex.Effect): if not len(new): # node.clear() - node.getparent().remove(node) - obsoleted += 1 - if debug: inkex.utils.debug("Path node obsoleted: " +str(id)) + if node.getparent() is not None: + node.getparent().remove(node) + obsoleted += 1 + if debug: inkex.utils.debug("Path node obsoleted: " +str(id)) else: remaining += 1 # BUG: All previously closed loops, are open, after we convert them back with cubicsuperpath.formatPath()