IDE: Return an accidentally removed assignment in component palette. Patch from Sandro Cumerlato.

git-svn-id: trunk@46844 -
This commit is contained in:
juha 2014-11-14 01:40:23 +00:00
parent ffa4d82af8
commit 0f7c742f16

View File

@ -851,8 +851,9 @@ var
Pg := Pages[aPageIndex];
if not Pg.Visible then Exit;
ScrollBox := Pg.GetScrollBox;
ScrollBox.OnResize := @OnScrollBoxResize;
Assert(Assigned(ScrollBox), 'CreateButtons: ScrollBox not assigned.');
ScrollBox.OnResize := @OnScrollBoxResize;
ScrollBox.OnMouseWheel := @OnPageMouseWheel;
//DebugLn(['TComponentPalette.UpdateNoteBookButtons PAGE=',Pg.PageName,' PageIndex=',Pg.PageComponent.PageIndex]);
// create selection button
CreateSelectionButton(Pg, IntToStr(aPageIndex), ScrollBox);