Hopefully fixed bug #233492 (SelectAll crashed on empty grids).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user