mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-07 10:57:39 +01:00
lazutils: TAvgLvlTree: when changing compare function, do not sort if there is only one node
git-svn-id: trunk@44659 -
This commit is contained in:
parent
499c7ed593
commit
fdc368ab6b
@ -1592,7 +1592,7 @@ var List: PPointer;
|
||||
i, OldCount: integer;
|
||||
begin
|
||||
if (FOnCompare=NewCompare) and (FOnObjectCompare=NewObjectCompare) then exit;
|
||||
if Count<1 then begin
|
||||
if Count<=1 then begin
|
||||
FOnCompare:=NewCompare;
|
||||
FOnObjectCompare:=NewObjectCompare;
|
||||
exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user