comparison 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
comparison
equal deleted inserted replaced
927:6d4b8c4051ff 928:35b6a9411e26
93 if(!mb_rt.mbnames) 93 if(!mb_rt.mbnames)
94 mb_rt.mbnames = {}; 94 mb_rt.mbnames = {};
95 95
96 mbname = n.attr("mbname"); 96 mbname = n.attr("mbname");
97 if(mbname) { 97 if(mbname) {
98 name = mbname.value();
99 mb_rt.mbnames[name] = obj;
100 return;
101 }
102 mbname = n.attr("label");
103 if(mbname&&(mbname.value()!="")) {
98 name = mbname.value(); 104 name = mbname.value();
99 mb_rt.mbnames[name] = obj; 105 mb_rt.mbnames[name] = obj;
100 } 106 }
101 } 107 }
102 108