fixtransform branch: TODO for rotating skewed elements

git-svn-id: http://svg-edit.googlecode.com/svn/branches/fixtransforms@1042 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-12-15 14:34:09 +00:00
parent 2d1fb52e35
commit 194e80ff77
1 changed files with 2 additions and 0 deletions

View File

@ -1744,6 +1744,8 @@ function BatchCommand(text) {
// else, it's a non-group
else {
var box = canvas.getBBox(selected);
// TODO: fix this, it is not correct in the case of a skewed element
// - use transformBox?
var center = {x: (box.x+box.width/2), y: (box.y+box.height/2)};
var newcenter = {x: center.x, y: center.y };
var m = svgroot.createSVGMatrix();