Improved selection mode handling in wxGrid::SelectBlock

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2000-03-13 22:11:24 +00:00
parent add95ac378
commit 399b60a0ad
2 changed files with 12 additions and 1 deletions

View File

@@ -7665,7 +7665,17 @@ void wxGrid::SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol )
{
int temp;
wxGridCellCoords updateTopLeft, updateBottomRight;
if ( m_selection->GetSelectionMode() == wxGrid::wxGridSelectRows )
{
leftCol = 0;
rightCol = GetNumberCols() - 1;
}
else if ( m_selection->GetSelectionMode() == wxGrid::wxGridSelectColumns )
{
topRow = 0;
bottomRow = GetNumberRows() - 1;
}
if ( topRow > bottomRow )
{
temp = topRow;