xlink to copied svg file

This commit is contained in:
Hg 2020-10-08 22:50:54 +02:00
parent a279606820
commit af7f8e98c5

View file

@ -64,7 +64,7 @@ def build_shape(svg_path, width, height):
ET.SubElement(xshape, 'aspectratio', attrib={'type': 'fixed'})
xsvg = ET.SubElement(xshape, 'svg:svg')
ET.SubElement(xsvg, 'svg:image', attrib={'xlink:href': str(svg_path), 'x': '0', 'y': '0', 'width': str(width), 'height': str(height)})
ET.SubElement(xsvg, 'svg:image', attrib={'xlink:href': f"{svg_path.stem}.svg", 'x': '0', 'y': '0', 'width': str(width), 'height': str(height)})
return xshape