From e12ab846bd3bf37bfe30cdb48eb0019ffce7b750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 Dec 2013 05:23:39 +0100 Subject: [PATCH] Fix decomposed transformation sequence. --- src/svg/SVGExport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/svg/SVGExport.js b/src/svg/SVGExport.js index 0ca70c42..1519c725 100644 --- a/src/svg/SVGExport.js +++ b/src/svg/SVGExport.js @@ -66,10 +66,10 @@ new function() { scale = decomposed.scaling; if (trans && !trans.isZero()) parts.push('translate(' + formatter.point(trans) + ')'); - if (!Numerical.isZero(scale.x - 1) || !Numerical.isZero(scale.y - 1)) - parts.push('scale(' + formatter.point(scale) +')'); if (angle) parts.push('rotate(' + formatter.number(angle) + ')'); + if (!Numerical.isZero(scale.x - 1) || !Numerical.isZero(scale.y - 1)) + parts.push('scale(' + formatter.point(scale) +')'); attrs.transform = parts.join(' '); } else { attrs.transform = 'matrix(' + matrix.getValues().join(',') + ')';