summaryrefslogtreecommitdiff
path: root/lib/extensions/fill_to_stroke.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/fill_to_stroke.py')
-rw-r--r--lib/extensions/fill_to_stroke.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/extensions/fill_to_stroke.py b/lib/extensions/fill_to_stroke.py
index 085b3c95..c1b5ce9d 100644
--- a/lib/extensions/fill_to_stroke.py
+++ b/lib/extensions/fill_to_stroke.py
@@ -87,12 +87,12 @@ class FillToStroke(InkstitchExtension):
# do not use a group in case there is only one line
if len(lines) <= 1:
- parent.remove(centerline_group)
+ centerline_group.delete()
centerline_group = parent
# clean up
if not self.options.keep_original:
- parent.remove(element.node)
+ element.node.delete()
# insert new elements
self._insert_elements(lines, centerline_group, index, element_id, element_label, transform, style)
@@ -262,7 +262,7 @@ class FillToStroke(InkstitchExtension):
# it is possible, that we get one element twice (if it has both, a fill and a stroke)
# this means that we already removed it from the svg and we can ignore the error.
try:
- cut_line.getparent().remove(cut_line)
+ cut_line.delete()
except AttributeError:
pass