From 02207d9f500d866ce7ea8a430a3113eeadcc0789 Mon Sep 17 00:00:00 2001 From: Vidar Hokstad Date: Fri, 12 Jun 2009 11:43:20 +0000 Subject: [PATCH] Took id from wrong location git-svn-id: http://svg-edit.googlecode.com/svn/trunk@114 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 195f2d5a..da8d81e2 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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);