importSVG: recognize relative scaling in viewBox attribute
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user