You've already forked lazarus-ccr
TvPlanIt: Fix ical events without end time and with zero duration running forever. GitLab issue #39061
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9089 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1941,12 +1941,11 @@ begin
|
|||||||
if (not ical[i].Checked) or (not (ical[i] is TVpICalEvent)) then
|
if (not ical[i].Checked) or (not (ical[i] is TVpICalEvent)) then
|
||||||
Continue;
|
Continue;
|
||||||
startTime := TVpICalEvent(ical[i]).StartTime[false]; // use local times
|
startTime := TVpICalEvent(ical[i]).StartTime[false]; // use local times
|
||||||
if TVpICalEvent(ical[i]).IsAllDayEvent then
|
|
||||||
endTime := trunc(startTime) + 1 - OneSecond
|
|
||||||
else
|
|
||||||
endTime := TVpICalEvent(ical[i]).EndTime[false];
|
|
||||||
if startTime = NO_DATE then
|
if startTime = NO_DATE then
|
||||||
continue;
|
continue;
|
||||||
|
endTime := TVpICalEvent(ical[i]).EndTime[false];
|
||||||
|
if (TVpICalEvent(ical[i]).IsAllDayEvent) or (endTime = NO_DATE) then
|
||||||
|
endTime := trunc(startTime) + 1;
|
||||||
id := dataStore.GetNextID(EventsTableName);
|
id := dataStore.GetNextID(EventsTableName);
|
||||||
event := AddEvent(id, starttime, endtime - OneSecond);
|
event := AddEvent(id, starttime, endtime - OneSecond);
|
||||||
event.Changed := true;
|
event.Changed := true;
|
||||||
|
Reference in New Issue
Block a user