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:
mattias 2014-04-09 14:01:40 +00:00
parent 499c7ed593
commit fdc368ab6b

View File

@ -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;