mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 12:40:34 +02:00
lazutils: avglvltree: fixed FindPointer on last node
git-svn-id: trunk@33923 -
This commit is contained in:
parent
4ba447b3b4
commit
ade0ad1b9e
@ -923,7 +923,8 @@ begin
|
||||
while (Result<>nil) do begin
|
||||
if Result.Data=Data then break;
|
||||
Result:=FindSuccessor(Result);
|
||||
if Compare(Data,Result.Data)<>0 then Result:=nil;
|
||||
if Result=nil then exit(nil);
|
||||
if Compare(Data,Result.Data)<>0 then exit(nil);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user