diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 740dd8172ab6b052b581cf6a7a8ebde242b6290b..e114ca33a167e8124e06446ae72841fabc623cc3 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)