summaryrefslogtreecommitdiff
path: root/lib/svg/rendering.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-03-22 17:43:50 +0100
committerGitHub <noreply@github.com>2025-03-22 17:43:50 +0100
commit40405edfe1ab9735e33fd705b090dc467983611f (patch)
tree1c475c7ab627a9959327fef8cba69815a5739397 /lib/svg/rendering.py
parentee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff)
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/svg/rendering.py')
-rw-r--r--lib/svg/rendering.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/svg/rendering.py b/lib/svg/rendering.py
index f43f2998..3cf30106 100644
--- a/lib/svg/rendering.py
+++ b/lib/svg/rendering.py
@@ -223,7 +223,7 @@ def color_block_to_paths(color_block, svg, destination, visual_commands, line_wi
def render_stitch_plan(svg, stitch_plan, realistic=False, visual_commands=True, render_jumps=True, line_width=0.4) -> inkex.Group:
layer_or_image = svg.findone(".//*[@id='__inkstitch_stitch_plan__']")
if layer_or_image is not None:
- layer_or_image.getparent().remove(layer_or_image)
+ layer_or_image.delete()
layer = inkex.Group(attrib={
'id': '__inkstitch_stitch_plan__',