Skip to content

Commit 3d8b67f

Browse files
committed
Fixed issue #1292: State tsClearPending is removed in the code after the assertion
... and the selection is cleared. So this assertion does not seem to make much sense.
1 parent 7522680 commit 3d8b67f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Source/VirtualTrees.BaseTree.pas

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12583,8 +12583,6 @@ procedure TBaseVirtualTree.HandleMouseDown(var Message: TWMMouse; var HitInfo: T
1258312583
if not FSelectionLocked and ((not (IsAnyHit or FullRowDrag) and MultiSelect and ShiftEmpty) or
1258412584
(IsAnyHit and (not NodeSelected or (NodeSelected and CanClear)) and (ShiftEmpty or not MultiSelect or (tsRightButtonDown in FStates)))) then
1258512585
begin
12586-
Assert(not (tsClearPending in FStates), 'Pending and direct clearance are mutual exclusive!');
12587-
1258812586
// If the currently hit node was already selected then we have to reselect it again after clearing the current
1258912587
// selection, but without a change event if it is the only selected node.
1259012588
// The same applies if the Alt key is pressed, which allows to start drawing the selection rectangle also

0 commit comments

Comments
 (0)