X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/389b961e233282ce7829107826ed92e314935366..adebd2d72c8897f30bd9e673d1e16ef2794d72ab:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index d653d727ee..186c7ba70a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -8345,7 +8345,8 @@ void wxGrid::SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol, void wxGrid::SelectAll() { - m_selection->SelectBlock( 0, 0, m_numRows-1, m_numCols-1 ); + if ( m_numRows > 0 && m_numCols > 0 ) + m_selection->SelectBlock( 0, 0, m_numRows-1, m_numCols-1 ); } //