Truncate poly coordinates to integers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@360 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -1471,7 +1471,7 @@ function SvgCanvas(c)
|
|||||||
current_poly_pts.push(y);
|
current_poly_pts.push(y);
|
||||||
// but we store relative coordinates in the d string of the poly for easy
|
// but we store relative coordinates in the d string of the poly for easy
|
||||||
// translation around the canvas in move mode
|
// 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);
|
poly.setAttribute("d", d_attr);
|
||||||
|
|
||||||
// set stretchy line to latest point
|
// set stretchy line to latest point
|
||||||
|
|||||||
Reference in New Issue
Block a user