[gnome-calendar] e-cal-data-model: fix event with no end-date
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] e-cal-data-model: fix event with no end-date
- Date: Mon, 8 Dec 2014 16:48:17 +0000 (UTC)
commit e58959d851e2fa1f0c5bcf49ce66631c203e15c0
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Dec 8 11:33:44 2014 -0500
e-cal-data-model: fix event with no end-date
Google Calendar set no end-date on events with 0 sec duration time. We
need to make the corner case work.
src/e-cal-data-model.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/e-cal-data-model.c b/src/e-cal-data-model.c
index 43da454..2fb09f7 100644
--- a/src/e-cal-data-model.c
+++ b/src/e-cal-data-model.c
@@ -48,6 +48,8 @@ cal_comp_get_instance_times (ECalClient *client,
start_time = icalcomponent_get_dtstart (icalcomp);
end_time = icalcomponent_get_dtend (icalcomp);
+ if (icaltime_is_null_time (end_time))
+ end_time = start_time;
if (start_time.zone) {
zone = start_time.zone;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]