LCL: TTreeView fixed endless loop

git-svn-id: trunk@10493 -
This commit is contained in:
mattias 2007-01-22 19:28:19 +00:00
parent 77c56b461f
commit e707c31119

View File

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