From fb01dd9e549de60ff34585d10f8bc3ecb5025ed8 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin <sergey.vfx@gmail.com> Date: Tue, 13 May 2014 16:47:01 +0200 Subject: [PATCH] Fix document height parsing when height contains units --- io_curve_svg/import_svg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 740dd8172..e114ca33a 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -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) -- GitLab