event-widget: fix events with no end date

This commit is contained in:
Erick Pérez Castellanos
2015-02-16 09:31:21 -05:00
parent 4c7a99e7bf
commit 8f1b118abb
3 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -1158,7 +1158,10 @@ gcal_year_view_component_added (ECalDataModelSubscriber *subscriber,
e_cal_component_free_datetime (&date);
e_cal_component_get_dtend (comp, &date);
event_end = icaltime_as_timet_with_zone (*(date.value), date.value->zone != NULL ? date.value->zone : zone);
if (date.value != NULL)
event_end = icaltime_as_timet_with_zone (*(date.value), date.value->zone != NULL ? date.value->zone : zone);
else
event_end = event_start;
e_cal_component_free_datetime (&date);
if (!((event_start <= range_start && event_end >= range_end) ||