IDE: Skip non-existent components when importing palette configuration.

git-svn-id: trunk@47221 -
This commit is contained in:
juha 2014-12-18 08:28:47 +00:00
parent eac1654958
commit f6bbc53755

View File

@ -309,9 +309,7 @@ begin
for i := 0 to OrderedComps.Count-1 do
begin
Comp := IDEComponentPalette.FindComponent(OrderedComps[i]);
Assert(Assigned(Comp), 'TCompPaletteOptionsFrame.InitialComps: Component "'+
OrderedComps[i]+'" not found');
if Comp.Visible then
if Assigned(Comp) and Comp.Visible then
aCompList.AddObject(Comp.ComponentClass.ClassName, Comp);
end;
end;