diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b1a44e03..2bd0a82f 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -465,8 +465,8 @@ function BatchCommand(text) { if (angle) { var cx = round(oldbox.x + oldbox.width/2) * current_zoom cy = round(oldbox.y + oldbox.height/2) * current_zoom; + this.selectorGroup.setAttribute("transform", "rotate("+angle+" " + cx + "," + cy + ")"); } - this.selectorGroup.setAttribute("transform", transform); svgroot.unsuspendRedraw(sr_handle); };