LCL: TTreeView: fixed GetIndex, bug #13249, from Petrov

git-svn-id: trunk@18843 -
This commit is contained in:
mattias 2009-02-28 10:14:31 +00:00
parent 0feb94742e
commit d5cc8b6e8b

View File

@ -999,6 +999,7 @@ var
begin
if FIndex>=0 then begin
Result:=FIndex;
exit;
end;
// many algorithms uses the last sibling, so we check that first for speed
if (Parent<>nil) and (Parent[Parent.Count-1]=Self) then begin