mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 16:09:30 +02:00
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:
parent
a8ae389b6f
commit
215e8e0e35
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user