diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-08 12:26:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-08 12:26:25 +0300 |
commit | 2fb7194dba7a60c82642032c780a0652fdc56b88 (patch) | |
tree | 298559044b7262f248bf822e539426b26a985ced /io_curve_svg | |
parent | fe69dd9ee86783786399506905324ef0c4cdd44e (diff) |
Fix T45460: SVG importer scale issues
Push SVG tag rectangle before calculating the matrix.
This way scale will use proper SVG width and height.
Diffstat (limited to 'io_curve_svg')
-rw-r--r-- | io_curve_svg/import_svg.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |