mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 12:19:18 +02:00
Revert r46860 #e8685513d0 "IDE: componentpalette options - set defaultdraw false...", DefaultDraw is needed to display text.
git-svn-id: trunk@46866 -
This commit is contained in:
parent
02afa460c3
commit
b292340eb6
@ -503,11 +503,8 @@ begin
|
||||
if Comp is TPkgComponent then begin
|
||||
CurIcon := TPkgComponent(Comp).Icon;
|
||||
if CurIcon<>nil then
|
||||
begin
|
||||
Sender.Canvas.Draw(ARect.Left+(25-CurIcon.Width) div 2,
|
||||
ARect.Top+(ARect.Bottom-ARect.Top-CurIcon.Height) div 2, CurIcon);
|
||||
DefaultDraw := False;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user