mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 15:56:08 +02:00
IDEIntf: fixed TIDEWindowCreator.CreateSimpleLayout:
git-svn-id: trunk@33337 -
This commit is contained in:
parent
2642e6a579
commit
605ffc8b2c
@ -1774,13 +1774,12 @@ begin
|
||||
end;
|
||||
|
||||
function TIDEWindowCreator.CreateSimpleLayout: TSimpleWindowLayout;
|
||||
var
|
||||
simple: TSimpleWindowLayout;
|
||||
begin
|
||||
if not Assigned(IDEWindowCreators.SimpleLayoutStorage.ItemByFormID(FormName))
|
||||
then begin
|
||||
simple := IDEWindowCreators.SimpleLayoutStorage.CreateWindowLayout(FormName);
|
||||
InitSimpleLayout(simple);
|
||||
Result:=IDEWindowCreators.SimpleLayoutStorage.ItemByFormID(FormName);
|
||||
if not Assigned(Result) then
|
||||
begin
|
||||
Result := IDEWindowCreators.SimpleLayoutStorage.CreateWindowLayout(FormName);
|
||||
InitSimpleLayout(Result);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user