Bug on Drop Source fixed
authorlbessard
Wed, 19 Sep 2007 13:25:50 +0200
changeset 277 426552c56a5a
parent 276 eada6c6c2e87
child 278 9d41c53dadac
Bug on Drop Source fixed
objdictgen/subindextable.py
--- a/objdictgen/subindextable.py	Tue Sep 18 18:04:54 2007 +0200
+++ b/objdictgen/subindextable.py	Wed Sep 19 13:25:50 2007 +0200
@@ -488,8 +488,8 @@
                         subentry_infos = self.Manager.GetSubentryInfos(index, subindex)
                         typeinfos = self.Manager.GetEntryInfos(subentry_infos["type"])
                         if subentry_infos["pdo"] and typeinfos:
-                            bus_id = '.'.join(map(str,self.Parent.GetBusId()))
-                            node_id = self.Parent.GetCurrentNodeId()
+                            bus_id = '.'.join(map(str,self.ParentWindow.GetBusId()))
+                            node_id = self.ParentWindow.GetCurrentNodeId()
                             size = typeinfos["size"]
                             data = wx.TextDataObject(str(("%s%s.%d.%d.%d"%(SizeConversion[size], bus_id, node_id, index, subindex), "location")))
                             dragSource = wx.DropSource(self.SubindexGrid)