Fixed issue 296: Align tools do not align properly when the zoom is active

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@885 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-10-28 18:50:12 +00:00
parent a7b3b7dd25
commit b59e989b12
1 changed files with 2 additions and 2 deletions

View File

@ -4970,12 +4970,12 @@ function BatchCommand(text) {
selectedBBoxes[i] = this.getBBox(selected);
// dx and dy could be arrays
if (dx.constructor == Array) {
selectedBBoxes[i].x += dx[i] * current_zoom;
selectedBBoxes[i].x += dx[i];
} else {
selectedBBoxes[i].x += dx;
}
if (dy.constructor == Array) {
selectedBBoxes[i].y += dy[i] * current_zoom;
selectedBBoxes[i].y += dy[i];
} else {
selectedBBoxes[i].y += dy;
}