[evolution/wip/webkit2] cal_comp_get_instance_times: Workaround issue with no DTEND set
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] cal_comp_get_instance_times: Workaround issue with no DTEND set
- Date: Wed, 22 Apr 2015 12:44:49 +0000 (UTC)
commit 2b84f9a2a6b5c294a97fe2f71e54efdf8f282eae
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]