Skip to content

Commit b4cd92f

Browse files
committed
Reverted changes for #1146
1 parent 85e45e0 commit b4cd92f

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
@@ -22526,8 +22526,6 @@ procedure TBaseVirtualTree.SortTree(Column: TColumnIndex; Direction: TSortDirect
2252622526
begin
2252722527
if RootNode.TotalCount <= 2 then
2252822528
Exit;//Nothing to do if there are one or zero nodes. RootNode.TotalCount is 1 if there are no nodes in the treee as the root node counts too here.
22529-
if not Assigned(OnCompareNodes) then
22530-
exit;// no sorting will take place without an event handler. Issue #1146
2253122529

2253222530
if not Assigned(FRoot.FirstChild) then
2253322531
Exit; // Sorting should not initialize the root nodes

0 commit comments

Comments
 (0)