diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-03-22 17:43:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-22 17:43:50 +0100 |
| commit | 40405edfe1ab9735e33fd705b090dc467983611f (patch) | |
| tree | 1c475c7ab627a9959327fef8cba69815a5739397 /lib/extensions/fill_to_stroke.py | |
| parent | ee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff) | |
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/extensions/fill_to_stroke.py')
| -rw-r--r-- | lib/extensions/fill_to_stroke.py | 6 |
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 |
