designer: fix TJITForms.IsJITForm

git-svn-id: trunk@51136 -
This commit is contained in:
ondrej 2016-01-02 20:16:39 +00:00
parent 1220d1bec2
commit 00c6de89c7

View File

@ -1895,7 +1895,7 @@ end;
function TJITForms.IsJITForm(AComponent: TComponent): Boolean;
begin
Result:=(AComponent<>nil) and (AComponent is TCustomForm)
and (TCustomForm(AComponent).Parent=nil) and (IndexOf(AComponent)>=0);
and (IndexOf(AComponent)>=0);
end;
function TJITForms.GetItem(Index: integer): TCustomForm;