diff --git a/include/wx/generic/gridsel.h b/include/wx/generic/gridsel.h index 18377431ef..d613283f66 100644 --- a/include/wx/generic/gridsel.h +++ b/include/wx/generic/gridsel.h @@ -28,8 +28,8 @@ public: wxGrid::wxGridSelectionModes sel = wxGrid::wxGridSelectCells); bool IsSelection(); - bool IsInSelection(int row, int col); - bool IsInSelection(const wxGridCellCoords& coords) + bool IsInSelection(int row, int col) const; + bool IsInSelection(const wxGridCellCoords& coords) const { return IsInSelection(coords.GetRow(), coords.GetCol()); } diff --git a/src/generic/gridsel.cpp b/src/generic/gridsel.cpp index 0288f9a66a..d4953c59d2 100644 --- a/src/generic/gridsel.cpp +++ b/src/generic/gridsel.cpp @@ -55,7 +55,7 @@ bool wxGridSelection::IsSelection() 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. //