some fixes

This commit is contained in:
Mario Voigt 2020-12-20 19:13:25 +01:00
parent 171133fa7f
commit 9b49adcbc8
2 changed files with 3 additions and 3 deletions

View File

@ -142,8 +142,7 @@ class ChainPaths(inkex.Effect):
return
segments = []
for id in self.svg.selected:
node = self.svg.selected[id]
for id, node in self.svg.selected.items():
if node.tag != inkex.addNS('path', 'svg'):
inkex.errormsg("Object " + id + " is not a path. Try\n - Path->Object to Path\n - Object->Ungroup")
return

View File

@ -241,7 +241,8 @@ class ContourScanner(inkex.Effect):
# polySegsNode.attrib['style'] = closingLineStyle
except AssertionError as e: # we skip AssertionError
inkex.utils.debug("Error: " + str(e))
#inkex.utils.debug("Error: " + str(e))
continue
#if the intersectionGroup was created but nothing attached we delete it again to prevent messing the SVG XML tree
if len(intersectionGroup.getchildren()) == 0:
intersectionGroupParent = intersectionGroup.getparent()