[evolution/evolution-3-12] ECalModel: Workaround issue with no DTEND set



commit 96fd44260970317472ea5d672c3edefaa9faec19
Author: Erick PĂ©rez Castellanos <erick red gmail com>
Date:   Tue Dec 9 15:59:30 2014 +0100

    ECalModel: Workaround issue with no DTEND set

 calendar/gui/e-cal-model.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 05ffef5..afdec4c 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -4281,6 +4281,10 @@ e_cal_model_set_instance_times (ECalModelComponent *comp_data,
                }
        }
 
+       /* Some events can have missing DTEND, then use the start_time for them */
+       if (icaltime_is_null_time (end_time))
+               end_time = start_time;
+
        if (start_time.zone)
                zone = start_time.zone;
        else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]