* Removed unnesecary bitmap creation

git-svn-id: trunk@14897 -
This commit is contained in:
marc 2008-04-19 17:42:27 +00:00
parent 4f7dcf7554
commit 5538f0bbf8

View File

@ -553,11 +553,6 @@ begin
+'_'+CurComponent.ComponentClass.ClassName;
// Left and Top will be set in ReAlignButtons.
SetBounds(Left,Top,ComponentPaletteBtnWidth,ComponentPaletteBtnHeight);
// we cannot assing a custombitmap directly, so force a glyph
B := TBitmap.Create;
Glyph := B;
B.Free;
// we now have a glyp so we can assign
Glyph.Assign(CurComponent.Icon);
GroupIndex := 1;
Flat := true;