Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
1387:17fd2b733154 | 1388:669f79a4ecaf |
---|---|
1150 coord.opacity=style.opacity; | 1150 coord.opacity=style.opacity; |
1151 } | 1151 } |
1152 // For a use tag, we will duplicate the group inside it. | 1152 // For a use tag, we will duplicate the group inside it. |
1153 attr = n.attr('duplicate-src'); | 1153 attr = n.attr('duplicate-src'); |
1154 if (attr != null) { | 1154 if (attr != null) { |
1155 n = this._groupMap[attr.value()]; | 1155 c = this.mb_rt.mbnames[attr.value()]; |
1156 if (n == null) { | 1156 if (c == null) { |
1157 sys.puts("Can not find object "+attr.value()); | 1157 sys.puts("Can not find object "+attr.value()); |
1158 return; | 1158 return; |
1159 } | 1159 } |
1160 coord.clone_from_subtree(n.coord); | 1160 coord.clone_from_subtree(c); |
1161 } | 1161 } |
1162 if (root.center.x > coord.center.x) | 1162 if (root.center.x > coord.center.x) |
1163 root.center.x = coord.center.x; | 1163 root.center.x = coord.center.x; |
1164 if (root.center.y > coord.center.y) | 1164 if (root.center.y > coord.center.y) |
1165 root.center.y = coord.center.y; | 1165 root.center.y = coord.center.y; |