aboutsummaryrefslogtreecommitdiffstats
path: root/src/matrix.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrix.js')
-rw-r--r--src/matrix.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/matrix.js b/src/matrix.js
index 4396816..07dc82b 100644
--- a/src/matrix.js
+++ b/src/matrix.js
@@ -48,7 +48,7 @@ SVG.Matrix = SVG.invent({
var currentTransform = new SVG.Matrix(this)
// Construct the resulting matrix
- var transformer = new SVG.Matrix()
+ var transformer = new SVG.Matrix(currentTransform)
.translate(-t.ox, -t.oy)
.scale(t.scaleX, t.scaleY)
.skew(t.skewX, t.skewY)
@@ -56,7 +56,6 @@ SVG.Matrix = SVG.invent({
.rotate(t.theta)
.translate(t.ox, t.oy)
.translate(t.rx, t.ry)
- .lmultiply(currentTransform)
// If we want the origin at a particular place, we force it there
if (isFinite(t.px) || isFinite(t.py)) {