Skip to content
Snippets Groups Projects
Commit 59ada9b1 authored by Guillaume Poulin's avatar Guillaume Poulin
Browse files

More bugfixes in SVGExporter.py

parent 35ea5589
No related branches found
No related tags found
No related merge requests found
...@@ -350,9 +350,9 @@ def correctCoordinates(node, item): ...@@ -350,9 +350,9 @@ def correctCoordinates(node, item):
continue continue
if ch.tagName == 'polyline': if ch.tagName == 'polyline':
removeTransform = True removeTransform = True
coords = np.array([map(float, c.split(',')) for c in ch.getAttribute('points').strip().split(' ')]) coords = np.array([[float(a) for a in c.split(',')] for c in ch.getAttribute('points').strip().split(' ')])
coords = pg.transformCoordinates(tr, coords, transpose=True) coords = pg.transformCoordinates(tr, coords, transpose=True)
ch.setAttribute('points', ' '.join([','.join(map(str, c)) for c in coords])) ch.setAttribute('points', ' '.join([','.join([str(a) for a in c]) for c in coords]))
elif ch.tagName == 'path': elif ch.tagName == 'path':
removeTransform = True removeTransform = True
newCoords = '' newCoords = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment