MG: fixed replacing form resources

git-svn-id: trunk@1959 -
This commit is contained in:
lazarus 2002-08-17 23:40:24 +00:00
parent b960c0b55f
commit 540bf89b62

View File

@ -990,6 +990,7 @@ function TDesigner.GetDesignedComponent(AComponent: TComponent): TComponent;
begin
Result:=AComponent;
while (Result<>nil)
and (Result<>Form)
and (Result.Owner<>Form)
and (Result is TControl) do
Result:=TControl(Result).Parent;