mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 10:49:09 +02:00
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:
parent
fe9817813b
commit
ff9a4a9b4f
@ -4019,9 +4019,10 @@ begin
|
|||||||
if I<0 then
|
if I<0 then
|
||||||
I:=List.Count-1;
|
I:=List.Count-1;
|
||||||
end;
|
end;
|
||||||
if I=J then exit;
|
|
||||||
|
|
||||||
Next := TWinControl(List[I]);
|
Next := TWinControl(List[I]);
|
||||||
|
if Next = CurrentControl then
|
||||||
|
Exit;
|
||||||
//DebugLn('TWinControl.FindNextControl B ',Next.Name,' ',dbgs(I),
|
//DebugLn('TWinControl.FindNextControl B ',Next.Name,' ',dbgs(I),
|
||||||
// +' ChckTabStop='+dbgs(CheckTabStop)+' TabStop='+dbgs(Next.TabStop)
|
// +' ChckTabStop='+dbgs(CheckTabStop)+' TabStop='+dbgs(Next.TabStop)
|
||||||
// +' ChckParent='+dbgs(CheckParent)+' Parent=Self='+dbgs(Next.Parent = Self)
|
// +' ChckParent='+dbgs(CheckParent)+' Parent=Self='+dbgs(Next.Parent = Self)
|
||||||
|
Loading…
Reference in New Issue
Block a user