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
master
Jeff Schiller 2011-02-03 18:16:22 +00:00
parent 76a2ce76d5
commit cb3bf30c94
1 changed files with 2 additions and 2 deletions

View File

@ -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);