Browse Source

Removed ClearRowSelection when action is SelectFromAnchorToCurrent. (#14738)

pull/14761/head
Brubning 2 years ago
committed by GitHub
parent
commit
c466e960d1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/Avalonia.Controls.DataGrid/DataGrid.cs

1
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);

Loading…
Cancel
Save