Truncate poly coordinates to integers
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@360 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
ab3fa8e925
commit
8db79e5c83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue