importSVG: recognize relative scaling in viewBox attribute

This commit is contained in:
Sebastian Hoogen 2014-06-20 16:01:22 +02:00 committed by wmayer
parent 7bc3f70b8d
commit 51b3a4c945

View File

@ -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')