fix error in contour scanner

This commit is contained in:
Mario Voigt 2021-05-25 12:16:04 +02:00
parent 2ea8106b4b
commit 5232f7159b

View File

@ -290,13 +290,13 @@ class ContourScanner(inkex.EffectExtension):
if self.options.apply_transformations is True and applyTransformAvailable is True:
applytransform.ApplyTransform().recursiveFuseTransform(self.document.getroot())
if self.options.breakapart:
if self.options.breakapart is True:
if len(self.svg.selected) == 0:
self.breakContours(self.document.getroot())
self.scanContours(self.document.getroot())
else:
newContourSet = []
for element in self.svg.selected.items():
for element in self.svg.selected.values():
self.breakContours(element)
for newContours in self.replacedNodes:
self.scanContours(newContours)