Refresh the grid correctly when the selection mode changes
Update the cells that had to be deselected due to the selection mode change. This used to work, but the refresh was lost during a previous refactoring.
This commit is contained in:
parent
ba2772b810
commit
033f006722
@ -128,7 +128,13 @@ void wxGridSelection::SetSelectionMode( wxGrid::wxGridSelectionModes selmode )
|
||||
}
|
||||
|
||||
if ( !valid )
|
||||
{
|
||||
if ( !m_grid->GetBatchCount() )
|
||||
{
|
||||
m_grid->RefreshBlock(block.GetTopLeft(), block.GetBottomRight());
|
||||
}
|
||||
m_selection.erase(m_selection.begin() + n);
|
||||
}
|
||||
}
|
||||
|
||||
m_selectionMode = selmode;
|
||||
|
Loading…
Reference in New Issue
Block a user