From 40cd489b4c6d332dd2749be630c8ba67111c6685 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 19 Nov 2009 16:08:16 +0000 Subject: [PATCH] Fixed Opera rotation bug in Issue 330 git-svn-id: http://svg-edit.googlecode.com/svn/trunk@956 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 675c0501..754df53c 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -4986,6 +4986,8 @@ function BatchCommand(text) { // if we are not rotated yet, insert a dummy xform var m = elem.getCTM(); + // Opera bug sets a and d to 0. + if(!m.a) m.a = 1; if(!m.d) m.d = 1; var center = transformPoint(cx,cy,m); var newrot = svgroot.createSVGTransform(); newrot.setRotate(val, center.x, center.y);