Took id from wrong location

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@114 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Vidar Hokstad 2009-06-12 11:43:20 +00:00
parent 7211966d3c
commit 02207d9f50
1 changed files with 1 additions and 1 deletions

View File

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