Took id from wrong location
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@114 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
7211966d3c
commit
02207d9f50
|
@ -676,7 +676,7 @@ function SvgCanvas(c)
|
|||
}
|
||||
|
||||
this.updateElementFromJson = function(data) {
|
||||
var shape = svgdoc.getElementById(data.id);
|
||||
var shape = svgdoc.getElementById(data.attr.id);
|
||||
var newshape = !shape;
|
||||
if (newshape) shape = svgdoc.createElementNS(svgns, data.element);
|
||||
assignAttributes(shape, data.attr);
|
||||
|
|
Loading…
Reference in New Issue