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.
This commit is contained in:
Ilya Sinitsyn
2020-04-01 23:29:48 +07:00
committed by Vadim Zeitlin
parent 779d3f7f17
commit 206bad9ba0

View File

@@ -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();