Fix undo problem when moving rotated/resized groups due to global start_transform variable

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@965 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-11-22 03:45:18 +00:00
parent f633ddeb11
commit ceb89dd557
1 changed files with 4 additions and 0 deletions

View File

@ -1540,6 +1540,9 @@ function BatchCommand(text) {
// force the accumulated translation down to the children
if (tx != 0 || ty != 0) {
// FIX ME: unfortunately recalculateDimensions depends on this global variable
var old_start_transform = start_transform;
start_transform = "";
// we pass the translates down to the individual children
var children = selected.childNodes;
var c = children.length;
@ -1553,6 +1556,7 @@ function BatchCommand(text) {
batchCmd.addSubCommand( recalculateDimensions(child) );
}
}
start_transform = old_start_transform;
}
}
// else, it's a non-group