Make wxGridSelection::IsInSelection() const

There is really no reason for it not to be.
This commit is contained in:
Vadim Zeitlin
2020-04-14 18:50:06 +02:00
parent 945718ef5f
commit ddaa5b5e02
2 changed files with 3 additions and 3 deletions

View File

@@ -28,8 +28,8 @@ public:
wxGrid::wxGridSelectionModes sel = wxGrid::wxGridSelectCells); wxGrid::wxGridSelectionModes sel = wxGrid::wxGridSelectCells);
bool IsSelection(); bool IsSelection();
bool IsInSelection(int row, int col); bool IsInSelection(int row, int col) const;
bool IsInSelection(const wxGridCellCoords& coords) bool IsInSelection(const wxGridCellCoords& coords) const
{ {
return IsInSelection(coords.GetRow(), coords.GetCol()); return IsInSelection(coords.GetRow(), coords.GetCol());
} }

View File

@@ -55,7 +55,7 @@ bool wxGridSelection::IsSelection()
return !m_selection.empty(); return !m_selection.empty();
} }
bool wxGridSelection::IsInSelection( int row, int col ) bool wxGridSelection::IsInSelection( int row, int col ) const
{ {
// Check whether the given cell is contained in one of the selected blocks. // Check whether the given cell is contained in one of the selected blocks.
// //