Minor fix. See #1475.

This commit is contained in:
Dion Moult
2021-07-04 20:22:20 +10:00
parent 9286de4813
commit 549bc0e1a9
2 changed files with 3 additions and 5 deletions
@@ -93,9 +93,6 @@ def replace_attribute(element, old, new):
for i, attribute in enumerate(element):
if has_element_reference(attribute, old):
new_attribute = element.walk(lambda v: v == old, lambda v: new, attribute)
# TODO: make this unnecessary
if element.wrapped_data.file.transaction:
element.wrapped_data.file.transaction.store_edit(element, i, new_attribute)
element[i] = new_attribute