From a46510a01553307c5da7e4e74b8e1347f987786b Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 27 Aug 2009 01:05:59 +0000 Subject: [PATCH] Integerize the angle when dragging rotation git-svn-id: http://svg-edit.googlecode.com/svn/trunk@482 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 044089b7..5a66e870 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1684,7 +1684,7 @@ function SvgCanvas(c) break; case "rotate": var box = canvas.getBBox(selected),cx = box.x + box.width/2, cy = box.y + box.height/2; - canvas.setRotationAngle(((Math.atan2(cy-y,cx-x) * (180/Math.PI))-90) % 360); + canvas.setRotationAngle(parseInt(((Math.atan2(cy-y,cx-x) * (180/Math.PI))-90) % 360)); break; default: break;