Fix document height parsing when height contains units
This commit is contained in:
parent
1989bc2ee9
commit
fb01dd9e54
|
@ -1754,7 +1754,8 @@ class SVGGeometrySVG(SVGGeometryContainer):
|
|||
# Better Inkscape compatibility: match document origin with
|
||||
# 3D space origin.
|
||||
if self._node.getAttribute('inkscape:version'):
|
||||
document_height = float(self._node.getAttribute('height'))
|
||||
raw_height = self._node.getAttribute('height')
|
||||
document_height = SVGParseCoord(raw_height, 1.0)
|
||||
matrix = matrix * Matrix.Translation([0.0, -document_height , 0.0])
|
||||
|
||||
self._pushMatrix(matrix)
|
||||
|
|
Loading…
Reference in New Issue