From 40405edfe1ab9735e33fd705b090dc467983611f Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 22 Mar 2025 17:43:50 +0100 Subject: parent.remove -> delete (#3600) --- lib/extensions/fill_to_stroke.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/extensions/fill_to_stroke.py') 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 -- cgit v1.2.3