Fix bug where invalid svg embedding was done when building sheets.

This commit is contained in:
Dion Moult
2023-03-06 11:52:55 +11:00
parent 8cc4edf60f
commit fba84ecd3c
@@ -308,7 +308,10 @@ class SheetBuilder:
for image in images:
new_href = ntpath.basename(image.attrib.get("{http://www.w3.org/1999/xlink}href"))
image.attrib["{http://www.w3.org/1999/xlink}href"] = new_href
group.append(embedded)
for child in embedded:
if "namedview" in child.tag:
continue
group.append(child)
return group
def convert_to_mm(self, value):