importSVG: recognize relative scaling in viewBox attribute
This commit is contained in:
parent
7bc3f70b8d
commit
51b3a4c945
|
@ -451,10 +451,7 @@ class svgHandler(xml.sax.ContentHandler):
|
|||
if name == 'svg':
|
||||
m=FreeCAD.Matrix()
|
||||
if 'width' in data and 'height' in data and \
|
||||
'viewBox' in data and\
|
||||
(getsize(attrs.getValue('width'),'isabsolute') and\
|
||||
getsize(attrs.getValue('height'),'isabsolute') or\
|
||||
len(self.grouptransform)!=0):
|
||||
'viewBox' in data:
|
||||
vbw=float(data['viewBox'][2])
|
||||
vbh=float(data['viewBox'][3])
|
||||
w=attrs.getValue('width')
|
||||
|
|
Loading…
Reference in New Issue
Block a user