lcl: fix FindNextControl when we need next control from nil and parent has only 1 control in list

git-svn-id: trunk@18158 -
This commit is contained in:
paul 2009-01-06 10:07:15 +00:00
parent fe9817813b
commit ff9a4a9b4f

View File

@ -4019,9 +4019,10 @@ begin
if I<0 then
I:=List.Count-1;
end;
if I=J then exit;
Next := TWinControl(List[I]);
if Next = CurrentControl then
Exit;
//DebugLn('TWinControl.FindNextControl B ',Next.Name,' ',dbgs(I),
// +' ChckTabStop='+dbgs(CheckTabStop)+' TabStop='+dbgs(Next.TabStop)
// +' ChckParent='+dbgs(CheckParent)+' Parent=Self='+dbgs(Next.Parent = Self)