another fix

This commit is contained in:
Mario Voigt 2020-12-20 19:41:40 +01:00
parent 9b49adcbc8
commit d81bdf50ab
1 changed files with 1 additions and 2 deletions

View File

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