From b59e989b124677712433af39da9e1dffe8511bec Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Wed, 28 Oct 2009 18:50:12 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index f3d5cdec..55f13876 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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; }