some fixes
This commit is contained in:
parent
171133fa7f
commit
9b49adcbc8
@ -142,8 +142,7 @@ class ChainPaths(inkex.Effect):
|
|||||||
return
|
return
|
||||||
|
|
||||||
segments = []
|
segments = []
|
||||||
for id in self.svg.selected:
|
for id, node in self.svg.selected.items():
|
||||||
node = self.svg.selected[id]
|
|
||||||
if node.tag != inkex.addNS('path', 'svg'):
|
if node.tag != inkex.addNS('path', 'svg'):
|
||||||
inkex.errormsg("Object " + id + " is not a path. Try\n - Path->Object to Path\n - Object->Ungroup")
|
inkex.errormsg("Object " + id + " is not a path. Try\n - Path->Object to Path\n - Object->Ungroup")
|
||||||
return
|
return
|
||||||
|
@ -241,7 +241,8 @@ class ContourScanner(inkex.Effect):
|
|||||||
# polySegsNode.attrib['style'] = closingLineStyle
|
# polySegsNode.attrib['style'] = closingLineStyle
|
||||||
|
|
||||||
except AssertionError as e: # we skip AssertionError
|
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 the intersectionGroup was created but nothing attached we delete it again to prevent messing the SVG XML tree
|
||||||
if len(intersectionGroup.getchildren()) == 0:
|
if len(intersectionGroup.getchildren()) == 0:
|
||||||
intersectionGroupParent = intersectionGroup.getparent()
|
intersectionGroupParent = intersectionGroup.getparent()
|
||||||
|
Reference in New Issue
Block a user