LCL: fixed regression from r59186 #8d0fe522bb. issue #34870

git-svn-id: trunk@60081 -
This commit is contained in:
zeljko 2019-01-14 12:16:26 +00:00
parent 0911c1c97f
commit cab53de86d

View File

@ -1143,7 +1143,7 @@ procedure TCustomTabControl.ShowCurrentPage;
begin
Result := False;
lForm := GetParentForm(APage);
if not Assigned(lForm) then Exit;
if not Assigned(lForm) or not lForm.Visible then Exit;
for i := 0 to APage.ControlCount - 1 do
if APage.Controls[i] = lForm.ActiveControl then
Exit(True);