Bugs on EDS import fixed
authorlbessard
Thu, 18 Oct 2007 10:23:45 +0200
changeset 310 1975e546178b
parent 309 5d08887347a9
child 311 adf4a929cf8b
Bugs on EDS import fixed
objdictgen/subindextable.py
--- a/objdictgen/subindextable.py	Thu Oct 18 10:13:18 2007 +0200
+++ b/objdictgen/subindextable.py	Thu Oct 18 10:23:45 2007 +0200
@@ -644,7 +644,7 @@
                 if self.Manager.IsCurrentEntry(index):
                     showpopup = False
                     infos = self.Manager.GetEntryInfos(index)
-                    if index >= 0x2000 and infos["struct"] & OD_MultipleSubindexes or infos["struct"] & OD_IdenticalSubindexes:
+                    if 0x2000 <= index <= 0x5FFF and infos["struct"] & OD_MultipleSubindexes or infos["struct"] & OD_IdenticalSubindexes:
                         showpopup = True
                         self.SubindexGridMenu.FindItemByPosition(0).Enable(True)
                         self.SubindexGridMenu.FindItemByPosition(1).Enable(True)