[evolution] cal_comp_get_instance_times: Workaround issue with no DTEND set
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] cal_comp_get_instance_times: Workaround issue with no DTEND set
- Date: Tue, 9 Dec 2014 14:51:32 +0000 (UTC)
commit 18c7e5031c08141220a089a11171e6e5f330c5e2
Author: Erick PĂ©rez Castellanos <erick red gmail com>
Date: Tue Dec 9 15:50:19 2014 +0100
cal_comp_get_instance_times: Workaround issue with no DTEND set
calendar/gui/comp-util.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index 0bef22b..cd1732b 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -863,6 +863,10 @@ cal_comp_get_instance_times (ECalClient *client,
start_time = icalcomponent_get_dtstart (icalcomp);
end_time = icalcomponent_get_dtend (icalcomp);
+ /* Some event 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]