mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:40:26 +02:00
IDE: fixed creating designer form
git-svn-id: trunk@26805 -
This commit is contained in:
parent
3768b38f7e
commit
c693f7923e
@ -6164,7 +6164,7 @@ begin
|
||||
if not (ofLoadHiddenResource in OpenFlags) then
|
||||
begin
|
||||
DesignerForm := FormEditor1.GetDesignerForm(NewComponent);
|
||||
if DesignerForm=nil then
|
||||
if (DesignerForm=nil) or (DesignerForm.Designer=nil) then
|
||||
DesignerForm := CreateDesignerForComponent(AnUnitInfo,NewComponent);
|
||||
end;
|
||||
|
||||
@ -10012,6 +10012,7 @@ begin
|
||||
// select a form (object inspector, formeditor, control selection)
|
||||
if FLastFormActivated<>nil then begin
|
||||
LastDesigner:=TDesigner(FLastFormActivated.Designer);
|
||||
debugln(['TMainIDE.DoOpenProjectFile ',DbgSName(FLastFormActivated),' ',DbgSName(FLastFormActivated.Designer)]);
|
||||
LastDesigner.SelectOnlyThisComponent(LastDesigner.LookupRoot);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user