From 0e8ca0c8f932c34167fae827c5807a2337963d94 Mon Sep 17 00:00:00 2001 From: Ilya Sinitsyn Date: Mon, 17 Aug 2020 21:12:02 +0700 Subject: [PATCH] Fix the cursor mode switching in wxGrid mouse move event handler Allow switching between row and column resizing modes in mouse move event handler. --- src/generic/grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 72c948572a..051c7cc7d6 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4714,14 +4714,14 @@ wxGrid::DoGridMouseMoveEvent(wxMouseEvent& WXUNUSED(event), // cell corner, as this is a more common operation. if ( dragCol >= 0 && CanDragGridColEdges() && CanDragColSize(dragCol) ) { - if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL ) + if ( m_cursorMode != WXGRID_CURSOR_RESIZE_COL ) { ChangeCursorMode(WXGRID_CURSOR_RESIZE_COL, gridWindow, false); } } else if ( dragRow >= 0 && CanDragGridRowEdges() && CanDragRowSize(dragRow) ) { - if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL ) + if ( m_cursorMode != WXGRID_CURSOR_RESIZE_ROW) { ChangeCursorMode(WXGRID_CURSOR_RESIZE_ROW, gridWindow, false); }