Remove deletion PDO when mapping undefined in export to EDS
authorlbessard
Mon, 20 Apr 2009 17:42:14 +0200
changeset 545 ff692766e5e9
parent 544 7620872e153c
child 546 13701680330c
Remove deletion PDO when mapping undefined in export to EDS
objdictgen/nodemanager.py
--- a/objdictgen/nodemanager.py	Thu Mar 26 22:11:41 2009 +0100
+++ b/objdictgen/nodemanager.py	Mon Apr 20 17:42:14 2009 +0200
@@ -677,7 +677,7 @@
             if name == "value":
                 if editor == "map":
                     value = node.GetMapValue(value)
-                    if value:
+                    if value is not None:
                         node.SetEntry(index, subIndex, value)
                 elif editor == "bool":
                     value = value == "True"