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;