diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3f55921e..34fea141 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1075,7 +1075,7 @@ function BatchCommand(text) { if (allowedAttrs.indexOf(attrName) == -1) { node.removeAttribute(attrName); } - if (attrName == 'd') { + if (node.nodeName == 'path' && attrName == 'd') { // Convert to absolute node.setAttribute('d',pathActions.convertPath(node)); }