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:
juha 2014-11-15 16:32:04 +00:00
parent 02afa460c3
commit b292340eb6

View File

@ -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;