diff options
Diffstat (limited to 'lib/svg/rendering.py')
| -rw-r--r-- | lib/svg/rendering.py | 2 |
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__', |
