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-75d572ba1dddmaster
parent
a7b3b7dd25
commit
b59e989b12
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue