From 8db79e5c833d0ff1587a66c735392a4649a85fad Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Fri, 7 Aug 2009 05:55:11 +0000 Subject: [PATCH] Truncate poly coordinates to integers git-svn-id: http://svg-edit.googlecode.com/svn/trunk@360 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b58bc180..a0641345 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1471,7 +1471,7 @@ function SvgCanvas(c) current_poly_pts.push(y); // but we store relative coordinates in the d string of the poly for easy // translation around the canvas in move mode - d_attr += "l" + (x-lastx) + "," + (y-lasty) + " "; + d_attr += "l" + parseInt(x-lastx) + "," + parseInt(y-lasty) + " "; poly.setAttribute("d", d_attr); // set stretchy line to latest point