IDE: Store component objects to palette page cache lists for the sake of symmetry and possible future needs.

git-svn-id: trunk@47007 -
This commit is contained in:
juha 2014-11-27 20:31:39 +00:00
parent 6ea31e7ad9
commit c6ec72dd8a

View File

@ -556,7 +556,7 @@ var
PgName: string;
Comp: TRegisteredComponent;
begin
if fOrigComponentPageCache.Count > 0 then Exit; // Cache only once.
if fOrigComponentPageCache.Count > 0 then Exit; // Fill cache only once.
for PageI := 0 to fOrigPagePriorities.Count-1 do
begin
PgName:=fOrigPagePriorities.Keys[PageI];
@ -569,7 +569,7 @@ begin
for CompI := 0 to fComps.Count-1 do begin
Comp := fComps[CompI];
if Comp.OrigPageName = PgName then //if SameText(Comp.OrigPageName, PgName) then
sl.Add(Comp.ComponentClass.ClassName);
sl.AddObject(Comp.ComponentClass.ClassName, Comp);
end;
end;
end;