mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 23:00:28 +02:00
LCL: TTreeView: fixed GetIndex, bug #13249, from Petrov
git-svn-id: trunk@18843 -
This commit is contained in:
parent
0feb94742e
commit
d5cc8b6e8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user