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-75d572ba1dddmaster
parent
31dd2a429c
commit
8e721292b8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue