From c8c8fdb9f313c4c5d7f7f7168e98b45920d1cea3 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Mon, 21 Sep 2009 00:03:47 +0000 Subject: [PATCH] Fix Issue 219: Remove rounding of dimensions when objects are moved, resized, etc git-svn-id: http://svg-edit.googlecode.com/svn/trunk@666 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b384dca6..a2c4d3f0 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -949,12 +949,12 @@ function BatchCommand(text) { var remap = function(x,y) { return { - 'x':round(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x), - 'y':round(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y) + 'x':(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x), + 'y':(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y) }; }; - var scalew = function(w) {return round(w*selectedBBox.width/box.width);} - var scaleh = function(h) {return round(h*selectedBBox.height/box.height);} + var scalew = function(w) {return (w*selectedBBox.width/box.width);} + var scaleh = function(h) {return (h*selectedBBox.height/box.height);} var batchCmd = new BatchCommand("Transform");