Fixed Opera rotation bug in Issue 330
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@956 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user