IDE: Fix a crash bug with ComponentList when ComponentPalette is hidden. Issue #28261, patch from Ondrej Pokorny.

git-svn-id: trunk@49288 -
This commit is contained in:
juha 2015-06-08 14:47:50 +00:00
parent a8ae389b6f
commit 215e8e0e35

View File

@ -739,7 +739,8 @@ begin
if not fComponentButtons.Find(Selected.ComponentClass.ClassName, i) then
ReAlignButtons(FPageControl.ActivePage);
// Select button
fComponentButtons[Selected.ComponentClass.ClassName].Down := true;
if fComponentButtons.Find(Selected.ComponentClass.ClassName, i) then //find again!
fComponentButtons.Data[i].Down := true;
end;
procedure TComponentPalette.CreatePopupMenu;