jvcllaz: Fix crash when adding TimeFrame controls at design-time.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7156 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz 2019-10-10 08:07:44 +00:00
parent 3b7794d5ea
commit 03e52c2b0e

View File

@ -2664,7 +2664,7 @@ begin
DrawCellTitleFrame(ACanvas, ATitleRect, Attr);
// Draw the scroll buttons
if Assigned(Cell) then begin
if Assigned(Cell) and Assigned(Viewer) then begin
Viewer.SetTo(Cell);
DrawScrollButtons(ACanvas, CellScrollBtnRect(ATitleRect));
end;