changeset 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 6d4b8c4051ff
children d35f9702b8c2
files nodejs/svg.js
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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;
     }
 }