Make wxGridSelection::IsInSelection() const
There is really no reason for it not to be.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
@@ -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.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user