mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:59:30 +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;
|
end;
|
||||||
|
|
||||||
function TIDEWindowCreator.CreateSimpleLayout: TSimpleWindowLayout;
|
function TIDEWindowCreator.CreateSimpleLayout: TSimpleWindowLayout;
|
||||||
var
|
|
||||||
simple: TSimpleWindowLayout;
|
|
||||||
begin
|
begin
|
||||||
if not Assigned(IDEWindowCreators.SimpleLayoutStorage.ItemByFormID(FormName))
|
Result:=IDEWindowCreators.SimpleLayoutStorage.ItemByFormID(FormName);
|
||||||
then begin
|
if not Assigned(Result) then
|
||||||
simple := IDEWindowCreators.SimpleLayoutStorage.CreateWindowLayout(FormName);
|
begin
|
||||||
InitSimpleLayout(simple);
|
Result := IDEWindowCreators.SimpleLayoutStorage.CreateWindowLayout(FormName);
|
||||||
|
InitSimpleLayout(Result);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user