Handle the case of dragging beyond the last row. Fixes #15007

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-01-28 23:54:04 +00:00
parent 3cc06f9c68
commit bbbc2a8724

View File

@@ -433,9 +433,15 @@ class GridRowMover(wx.EvtHandler):
evt.Skip()
return
row = self.grid.YToRow(py + sy)
if row == wx.NOT_FOUND:
evt.Skip()
return
self.isDragging = True
self.didMove = False
row = self.grid.YToRow(py + sy)
rect = self.grid.RowToRect(row)
self.cellY = py + sy - rect.y
size = self.lwin.GetSize()