author | lbessard |
Fri, 29 Feb 2008 09:52:39 +0100 | |
changeset 182 | aad505fc468f |
parent 181 | 2981c3d3b088 |
child 183 | 99d77995b4ea |
PLCOpenEditor.py | file | annotate | diff | comparison | revisions |
--- a/PLCOpenEditor.py Fri Feb 29 09:01:09 2008 +0100 +++ b/PLCOpenEditor.py Fri Feb 29 09:52:39 2008 +0100 @@ -3252,6 +3252,7 @@ self.ParentWindow = parent def OnDropText(self, x, y, data): + x, y = self.ParentWindow.VariablesGrid.CalcUnscrolledPosition(x, y) col = self.ParentWindow.VariablesGrid.XToCol(x) row = self.ParentWindow.VariablesGrid.YToRow(y - self.ParentWindow.VariablesGrid.GetColLabelSize()) if col != wx.NOT_FOUND and row != wx.NOT_FOUND: