Browse Source
Removed ClearRowSelection when action is SelectFromAnchorToCurrent. (#14738)
pull/14761/head
Brubning
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
1 deletions
-
src/Avalonia.Controls.DataGrid/DataGrid.cs
|
|
@ -2830,7 +2830,6 @@ namespace Avalonia.Controls |
|
|
if (SelectionMode == DataGridSelectionMode.Extended && AnchorSlot != -1) |
|
|
if (SelectionMode == DataGridSelectionMode.Extended && AnchorSlot != -1) |
|
|
{ |
|
|
{ |
|
|
int anchorSlot = AnchorSlot; |
|
|
int anchorSlot = AnchorSlot; |
|
|
ClearRowSelection(slot, setAnchorSlot: false); |
|
|
|
|
|
if (slot <= anchorSlot) |
|
|
if (slot <= anchorSlot) |
|
|
{ |
|
|
{ |
|
|
SetRowsSelection(slot, anchorSlot); |
|
|
SetRowsSelection(slot, anchorSlot); |
|
|
|