--- 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)