Fix #3667. Allow removing drawings if the sheet hasn't yet been generated or manually removed.

This commit is contained in:
Dion Moult
2023-08-31 22:36:10 +10:00
parent c6b82bfa56
commit 951026a95c
@@ -174,6 +174,8 @@ class SheetBuilder:
ET.register_namespace("", "http://www.w3.org/2000/svg")
layout_path = tool.Drawing.get_document_uri(sheet, "LAYOUT")
if not os.path.exists(layout_path):
return
layout_tree = ET.parse(layout_path)
layout_root = layout_tree.getroot()