Mercurial > MadButterfly
diff nodejs/svg.js @ 1388:669f79a4ecaf
Fix the parseUse which setup parameter to the wrong object.
author | wycc |
---|---|
date | Fri, 25 Mar 2011 03:54:45 +0800 |
parents | 2ebb07ee455e |
children | 18494028f5bc |
line wrap: on
line diff
--- a/nodejs/svg.js Fri Mar 25 03:53:03 2011 +0800 +++ b/nodejs/svg.js Fri Mar 25 03:54:45 2011 +0800 @@ -1152,12 +1152,12 @@ // For a use tag, we will duplicate the group inside it. attr = n.attr('duplicate-src'); if (attr != null) { - n = this._groupMap[attr.value()]; - if (n == null) { + c = this.mb_rt.mbnames[attr.value()]; + if (c == null) { sys.puts("Can not find object "+attr.value()); return; } - coord.clone_from_subtree(n.coord); + coord.clone_from_subtree(c); } if (root.center.x > coord.center.x) root.center.x = coord.center.x;