From d81bdf50ab73a5124776ef1c7e38c62cf5ed2aec Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 20 Dec 2020 19:41:40 +0100 Subject: [PATCH] another fix --- extensions/fablabchemnitz/chain_paths.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/chain_paths.py b/extensions/fablabchemnitz/chain_paths.py index d07b6f77..b1e16c52 100644 --- a/extensions/fablabchemnitz/chain_paths.py +++ b/extensions/fablabchemnitz/chain_paths.py @@ -176,8 +176,7 @@ class ChainPaths(inkex.Effect): # chain the segments obsoleted = 0 remaining = 0 - for id in self.svg.selected: - node = self.svg.selected[id] + for id, node in self.svg.selected.items(): path_d = CubicSuperPath(Path(node.get('d'))) # ATTENTION: for parsePath() it is the same, if first and last point coincide, or if the path is really closed. path_closed = True if re.search("z\s*$", node.get('d')) else False