Skip to content
Snippets Groups Projects
Commit fb01dd9e authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

Fix document height parsing when height contains units

parent 1989bc2e
Branches
Tags
No related merge requests found
...@@ -1754,7 +1754,8 @@ class SVGGeometrySVG(SVGGeometryContainer): ...@@ -1754,7 +1754,8 @@ class SVGGeometrySVG(SVGGeometryContainer):
# Better Inkscape compatibility: match document origin with # Better Inkscape compatibility: match document origin with
# 3D space origin. # 3D space origin.
if self._node.getAttribute('inkscape:version'): 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]) matrix = matrix * Matrix.Translation([0.0, -document_height , 0.0])
self._pushMatrix(matrix) self._pushMatrix(matrix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment