diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index b793d7dd..14c43462 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2994,6 +2994,15 @@ function BatchCommand(text) { if(!getBBox) { // Replace the current element with the converted one + + // Reorient if it has a matrix + if(eltrans) { + var tlist = canvas.getTransformList(path); + if(hasMatrixTransform(tlist)) { + resetPathOrientation(path); + } + } + batchCmd.addSubCommand(new RemoveElementCommand(elem, parent)); batchCmd.addSubCommand(new InsertElementCommand(path));