Fix importing the same symbol multiple times (Issue 774)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1975 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
76a2ce76d5
commit
cb3bf30c94
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue