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