tvplanit: Fix Ganttview crash at designtime introduced by previous commit.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8544 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-10-12 17:07:53 +00:00
parent 8f81cf7a6d
commit 3cb293895d

View File

@ -982,7 +982,7 @@ var
begin
inherited;
if (FRowHeight > 0) and (FEventRecords.Count > 0) then
if (FRowHeight > 0) and Assigned(FEventRecords) and (FEventRecords.Count > 0) then
begin
VisibleRows := CalcVisibleRows(ClientHeight, FTotalColHeaderHeight, FRowHeight);
emptyRows := VisibleRows - (FEventRecords.Count - FTopRow);