Fixed Opera rotation bug in Issue 330

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@956 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-11-19 16:08:16 +00:00
parent 383ef4a290
commit 40cd489b4c
1 changed files with 2 additions and 0 deletions

View File

@ -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);