Fixed issue 616: Rotated object from Image Library import jumps on move

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1694 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-08-31 14:37:36 +00:00
parent 31dd2a429c
commit 8e721292b8
1 changed files with 6 additions and 4 deletions

View File

@ -3733,10 +3733,12 @@ var recalculateDimensions = this.recalculateDimensions = function(selected) {
// if it was a translate, put back the rotate at the new center
if (operation == 2) {
if (angle) {
newcenter = {
x: oldcenter.x + m.e,
y: oldcenter.y + m.f
};
if(!hasMatrixTransform(tlist)) {
newcenter = {
x: oldcenter.x + m.e,
y: oldcenter.y + m.f
};
}
var newRot = svgroot.createSVGTransform();
newRot.setRotate(angle, newcenter.x, newcenter.y);
tlist.insertItemBefore(newRot, 0);