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/redwork.py | |
| parent | ee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff) | |
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/extensions/redwork.py')
| -rw-r--r-- | lib/extensions/redwork.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/extensions/redwork.py b/lib/extensions/redwork.py index 5e0ae5a3..48a9da31 100644 --- a/lib/extensions/redwork.py +++ b/lib/extensions/redwork.py @@ -68,7 +68,7 @@ class Redwork(InkstitchExtension): # remove input elements if not self.options.keep_originals: for element in elements: - element.node.getparent().remove(element.node) + element.node.delete() def _ensure_starting_point(self, multi_line_string, starting_point): # returns a MultiLineString whose first LineString starts close to starting_point @@ -97,7 +97,7 @@ class Redwork(InkstitchExtension): if command: # remove command symbol command_group = command.connector.getparent() - command_group.getparent().remove(command_group) + command_group.delete() # return the first occurence directly return command.target_point |
