IDEIntf: fixed TIDEWindowCreator.CreateSimpleLayout:

git-svn-id: trunk@33337 -
This commit is contained in:
mattias 2011-11-05 14:11:25 +00:00
parent 2642e6a579
commit 605ffc8b2c

View File

@ -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;