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:
committed by
Vadim Zeitlin
parent
779d3f7f17
commit
206bad9ba0
@@ -5287,21 +5287,7 @@ wxGrid::SendEvent(wxEventType type,
|
|||||||
{
|
{
|
||||||
bool claimed, vetoed;
|
bool claimed, vetoed;
|
||||||
|
|
||||||
if ( type == wxEVT_GRID_RANGE_SELECT )
|
if ( type == wxEVT_GRID_LABEL_LEFT_CLICK ||
|
||||||
{
|
|
||||||
// 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_LEFT_DCLICK ||
|
||||||
type == wxEVT_GRID_LABEL_RIGHT_CLICK ||
|
type == wxEVT_GRID_LABEL_RIGHT_CLICK ||
|
||||||
type == wxEVT_GRID_LABEL_RIGHT_DCLICK )
|
type == wxEVT_GRID_LABEL_RIGHT_DCLICK )
|
||||||
|
Reference in New Issue
Block a user