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