diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index f67bd960b8..1dca09bd95 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -10251,7 +10251,7 @@ wxGridSelectionRange wxGrid::GetSelectionRange() const if ( !m_selection ) return wxGridSelectionRange(); - wxVectorGridBlockCoords& blocks = m_selection->GetBlocks(); + const wxVectorGridBlockCoords& blocks = m_selection->GetBlocks(); return wxGridSelectionRange(blocks.begin(), blocks.end()); }