# HG changeset patch # User lbessard # Date 1197282005 -3600 # Node ID 6715fd958477e25b59467759c795ed2d7f6cafa6 # Parent 960b8e7f71bbb8d8bbcbee4944c50b2e6227e103 Bug on Drag and Drop fixed diff -r 960b8e7f71bb -r 6715fd958477 PLCOpenEditor.py --- a/PLCOpenEditor.py Mon Dec 10 11:17:38 2007 +0100 +++ b/PLCOpenEditor.py Mon Dec 10 11:20:05 2007 +0100 @@ -1015,7 +1015,7 @@ def OnProjectTreeBeginDrag(self, event): if wx.Platform == '__WXMSW__': - self.SelectedItem = event.Skip() + self.SelectedItem = event.GetItem() if self.SelectedItem is not None and self.ProjectTree.GetPyData(self.SelectedItem) == ITEM_POU: block_name = self.ProjectTree.GetItemText(self.SelectedItem) block_type = self.Controler.GetPouType(block_name)