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:
parent
3b7794d5ea
commit
03e52c2b0e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user