mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-11 14:27:09 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user