From 206bad9ba088314a6afae8486de3e561eb13120c Mon Sep 17 00:00:00 2001 From: Ilya Sinitsyn Date: Wed, 1 Apr 2020 23:29:48 +0700 Subject: [PATCH] Remove wxEVT_GRID_RANGE_SELECT handling by wxGrid::SendEvent() VZ: [...] this is not used by wxGrid itself and SendEvent() is not part of the public API, so we never made any promises about being able to call it with wxEVT_GRID_RANGE_SELECT. --- src/generic/grid.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 2d5ab5dc1b..73a34ec31a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -5287,24 +5287,10 @@ wxGrid::SendEvent(wxEventType type, { bool claimed, vetoed; - if ( type == wxEVT_GRID_RANGE_SELECT ) - { - // Right now, it should _never_ end up here! - wxGridRangeSelectEvent gridEvt( GetId(), - type, - this, - m_selectedBlockTopLeft, - m_selectedBlockBottomRight, - true, - mouseEv); - - claimed = GetEventHandler()->ProcessEvent(gridEvt); - vetoed = !gridEvt.IsAllowed(); - } - else if ( type == wxEVT_GRID_LABEL_LEFT_CLICK || - type == wxEVT_GRID_LABEL_LEFT_DCLICK || - type == wxEVT_GRID_LABEL_RIGHT_CLICK || - type == wxEVT_GRID_LABEL_RIGHT_DCLICK ) + if ( type == wxEVT_GRID_LABEL_LEFT_CLICK || + type == wxEVT_GRID_LABEL_LEFT_DCLICK || + type == wxEVT_GRID_LABEL_RIGHT_CLICK || + type == wxEVT_GRID_LABEL_RIGHT_DCLICK ) { wxPoint pos = mouseEv.GetPosition();