From cb3bf30c949a379a09b61dede2ea3e9cce0bdeae Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Thu, 3 Feb 2011 18:16:22 +0000 Subject: [PATCH] Fix importing the same symbol multiple times (Issue 774) git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1975 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);