[evolution-data-server/wip/mcrha/libical-glib] Handle recurring forever better at e_cal_util_get_component_occur_times()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/wip/mcrha/libical-glib] Handle recurring forever better at e_cal_util_get_component_occur_times()
- Date: Wed, 17 Apr 2019 13:23:13 +0000 (UTC)
commit c2b81ab3515fe062fc17b29c17f5d4ecfd978293
Author: Milan Crha <mcrha redhat com>
Date: Wed Apr 17 15:24:11 2019 +0200
Handle recurring forever better at e_cal_util_get_component_occur_times()
src/calendar/libecal/e-cal-util.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/calendar/libecal/e-cal-util.c b/src/calendar/libecal/e-cal-util.c
index 1316f955c..cef07e73f 100644
--- a/src/calendar/libecal/e-cal-util.c
+++ b/src/calendar/libecal/e-cal-util.c
@@ -1954,8 +1954,10 @@ e_cal_util_get_component_occur_times (ECalComponent *comp,
tt = i_cal_time_add (e_cal_component_period_get_start (period),
e_cal_component_period_get_duration (period));
rdate_end = i_cal_time_as_timet (tt);
g_object_unref (tt);
- } else {
+ } else if (e_cal_component_period_get_end (period)) {
rdate_end = i_cal_time_as_timet (e_cal_component_period_get_end
(period));
+ } else {
+ rdate_end = (time_t) -1;
}
if (rdate_end == -1) /* repeats forever */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]