From 2fb7194dba7a60c82642032c780a0652fdc56b88 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 8 Jan 2016 14:26:25 +0500 Subject: Fix T45460: SVG importer scale issues Push SVG tag rectangle before calculating the matrix. This way scale will use proper SVG width and height. --- io_curve_svg/import_svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_curve_svg') diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 611498aa..333b8237 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -1761,6 +1761,7 @@ class SVGGeometrySVG(SVGGeometryContainer): """ rect = SVGRectFromNode(self._node, self._context) + self._pushRect(rect) matrix = self.getNodeMatrix() @@ -1772,7 +1773,6 @@ class SVGGeometrySVG(SVGGeometryContainer): matrix = matrix * Matrix.Translation([0.0, -document_height , 0.0]) self._pushMatrix(matrix) - self._pushRect(rect) super()._doCreateGeom(False) -- cgit v1.2.3