From a61e83edf2ed1870bd41bad135f4f6fc85b0f628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 6 Mar 2018 12:57:05 +0100 Subject: [PATCH] Simplify fix for #1452 --- src/svg/SvgImport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/SvgImport.js b/src/svg/SvgImport.js index 87ba37d0..d93a5025 100644 --- a/src/svg/SvgImport.js +++ b/src/svg/SvgImport.js @@ -223,7 +223,7 @@ new function() { // into account, which will be defined by the time the load // event is called. var center = getPoint(node).add(size.divide(2)); - this._matrix.append(new Matrix(1, 0, 0, 1, center.x, center.y)); + this._matrix.append(new Matrix().translate(center)); }); return raster; },