diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 79730874..7714636f 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -6879,6 +6879,8 @@ this.importSvgString = function(xmlString) { } } + var batchCmd = new BatchCommand("Import SVG"); + if(useExisting) { var symbol = import_ids[uid].symbol; var ts = import_ids[uid].xform; @@ -6888,8 +6890,6 @@ this.importSvgString = function(xmlString) { this.prepareSvg(newDoc); - var batchCmd = new BatchCommand("Import SVG"); - // import new svg document into our document var svg = svgdoc.importNode(newDoc.documentElement, true);