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/update.py | |
| parent | ee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff) | |
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/update.py')
| -rw-r--r-- | lib/update.py | 4 |
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) |
