Truncate poly coordinates to integers

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@360 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-08-07 05:55:11 +00:00
parent ab3fa8e925
commit 8db79e5c83
1 changed files with 1 additions and 1 deletions

View File

@ -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