Bug on new DCF entry boolean value fixed
authorlbessard
Mon, 10 Dec 2007 23:15:55 +0100
changeset 340 60e1eb89455e
parent 339 473e29dcad25
child 341 7ff01f109bbc
Bug on new DCF entry boolean value fixed
objdictgen/subindextable.py
--- a/objdictgen/subindextable.py	Mon Dec 10 23:15:23 2007 +0100
+++ b/objdictgen/subindextable.py	Mon Dec 10 23:15:55 2007 +0100
@@ -715,9 +715,9 @@
                         node_id = self.ParentWindow.GetCurrentNodeId()
                         value = self.Table.GetValueByName(subindex, "value")
                         if value == "True":
+                            value = 1
+                        elif value == "False":
                             value = 0
-                        elif value == "False":
-                            value = 1
                         elif value.isdigit():
                             value = int(value)
                         elif value.startswith("0x"):