Fix id clash in SVGExport.

This commit is contained in:
Jürg Lehni 2013-06-18 17:29:00 -07:00
parent ace23d354d
commit 2241329321
2 changed files with 5 additions and 5 deletions

View file

@ -37,9 +37,9 @@
justification: 'center',
content: mode
})
var clip = new Group(rect, img, text);
clip.position = point;
all.addChild(clip);
var group = new Group(rect, img, text);
group.position = point;
all.addChild(group);
}
var modes = [ 'normal', 'multiply', 'screen', 'overlay', 'soft-light',

View file

@ -461,9 +461,9 @@ new function() {
getDefinition();
// Have different id ranges per type
var id = definitions.ids[type] = (definitions.ids[type] || 0) + 1;
// Give the svg node an id, and link to it from the id.
// Give the svg node an id, and link to it from the item id.
node.id = type + '-' + id;
definitions.svgs[node.id] = node;
definitions.svgs[type + '-' + item._id] = node;
}
function exportDefinitions(node) {