From c20f5b8076ab8a586f1bf7ec1c8753f2b79c0bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Wed, 12 Jun 2024 17:37:03 +0200 Subject: [PATCH] Update ReadSVG.cpp --- Extra/ReadSVG.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Extra/ReadSVG.cpp b/Extra/ReadSVG.cpp index 409b88d..d7776d9 100644 --- a/Extra/ReadSVG.cpp +++ b/Extra/ReadSVG.cpp @@ -165,14 +165,14 @@ class ReadSVGPlugin : public GenericReaderPlugin void getLayers(xmlNode *node, std::vector *layers); IntParam *_dpi; BooleanParam *_translateEnabled; - Double2DParam* _translate; - DoubleParam* _rotate; - Double2DParam* _scale; - BooleanParam* _scaleUniform; - DoubleParam* _skewX; - DoubleParam* _skewY; - ChoiceParam* _skewOrder; - Double2DParam* _center; + Double2DParam *_translate; + DoubleParam *_rotate; + Double2DParam *_scale; + BooleanParam *_scaleUniform; + DoubleParam *_skewX; + DoubleParam *_skewY; + ChoiceParam *_skewOrder; + Double2DParam *_center; std::vector imageLayers; }; @@ -412,7 +412,7 @@ ReadSVGPlugin::decodePlane(const std::string& filename, CairoHelper::applyTransform(cr, {{translateX, translateY}, {(translateEnabled ? translateX : centerX), (translateEnabled ? translateY : centerY)}, - {scaleX, scaleY}, + {scaleX, (scaleUniform ? scaleX : scaleY)}, {(skewO == 1 ? skewY : skewX), (skewO == 1 ? skewX : skewY)}, rotate,