mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-21 06:59:21 +02:00
LCL: TTreeView fixed endless loop
git-svn-id: trunk@10493 -
This commit is contained in:
parent
77c56b461f
commit
e707c31119
@ -1987,8 +1987,10 @@ begin
|
||||
// optimization for the last nodes
|
||||
Result:=GetLastSubNode;
|
||||
i:=Count-1;
|
||||
while (Index<i) do
|
||||
while (Index<i) do begin
|
||||
Result:=Result.GetPrev;
|
||||
dec(i);
|
||||
end;
|
||||
end
|
||||
else begin
|
||||
Result := GetFirstNode;
|
||||
|
Loading…
Reference in New Issue
Block a user