mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 05:37:23 +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;
|
i, OldCount: integer;
|
||||||
begin
|
begin
|
||||||
if (FOnCompare=NewCompare) and (FOnObjectCompare=NewObjectCompare) then exit;
|
if (FOnCompare=NewCompare) and (FOnObjectCompare=NewObjectCompare) then exit;
|
||||||
if Count<1 then begin
|
if Count<=1 then begin
|
||||||
FOnCompare:=NewCompare;
|
FOnCompare:=NewCompare;
|
||||||
FOnObjectCompare:=NewObjectCompare;
|
FOnObjectCompare:=NewObjectCompare;
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user