tvplanit: Fix Dayview crashing IDE when inserted to form

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4920 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-07-06 08:17:28 +00:00
parent 7cfd38f300
commit 3c9f3f57e4
2 changed files with 1 additions and 3 deletions

View File

@ -418,7 +418,7 @@ type
UseGran: TVpGranularity);
procedure PaintToCanvas (ACanvas: TCanvas; ARect: TRect; Angle: TVpRotationAngle;
ADate: TDateTime; StartHour, EndHour: TVpHours; UseGran: TVpGranularity);
procedure RenderToCanvas (RenderCanvas: TCanvas; RenderIn: TRect;
procedure RenderToCanvas(RenderCanvas: TCanvas; RenderIn: TRect;
Angle: TVpRotationAngle; Scale: Extended; RenderDate: TDateTime;
StartLine, StopLine: Integer; UseGran: TVpGranularity; DisplayOnly: Boolean); override;

View File

@ -305,10 +305,8 @@ begin
// Initialize the rectangle to be used for all-day events
ADEventsRect := InitAllDayEventsRect;
{
if (FDayView.DataStore = nil) or (FDayView.DataStore.Resource = nil) then
Exit;
}
// Collect all of the events for this range and determine the maximum
// number of all day events for the range of days covered by the control.