summaryrefslogtreecommitdiff
path: root/lib/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/update.py')
-rw-r--r--lib/update.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/update.py b/lib/update.py
index e0f6129a..6816bcd6 100644
--- a/lib/update.py
+++ b/lib/update.py
@@ -240,13 +240,13 @@ def reposition_legacy_command(command):
# instead of calculating the transform for the new position, we take the easy route and remove
# the old commands and set new ones
add_commands(Stroke(element), [command_name], InkstitchPoint(*target_point))
- command_group.getparent().remove(command_group)
+ command_group.delete()
def _rename_command(document, symbol, old_name, new_name):
symbol_id = symbol.get_id()
if symbol_id.startswith(old_name):
- symbol.getparent().remove(symbol)
+ symbol.delete()
ensure_symbol(document, new_name)
_update_command(document, symbol_id, new_name)