Mercurial > MadButterfly
diff nodejs/svg.js @ 928:35b6a9411e26
Use inkscape:label to be the same way as the mbname. In this way, we can use the property editor to define name of the object.
author | wycc |
---|---|
date | Wed, 03 Nov 2010 22:02:23 +0800 |
parents | e4474cac20da |
children | a9abcdac0ae5 |
line wrap: on
line diff
--- a/nodejs/svg.js Wed Oct 27 01:17:37 2010 +0800 +++ b/nodejs/svg.js Wed Nov 03 22:02:23 2010 +0800 @@ -97,6 +97,12 @@ if(mbname) { name = mbname.value(); mb_rt.mbnames[name] = obj; + return; + } + mbname = n.attr("label"); + if(mbname&&(mbname.value()!="")) { + name = mbname.value(); + mb_rt.mbnames[name] = obj; } }