aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/calobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/calobj.c')
-rw-r--r--calendar/pcs/calobj.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/calendar/pcs/calobj.c b/calendar/pcs/calobj.c
index f298c2caf3..b57f660a7b 100644
--- a/calendar/pcs/calobj.c
+++ b/calendar/pcs/calobj.c
@@ -1112,6 +1112,9 @@ duration_callback (iCalObject *ico, time_t start, time_t end, void *closure)
{
int *count = closure;
+ if (ico->exdate && is_date_in_list (ico->exdate, &start))
+ return;
+
(*count)++;
if (ico->recur->duration == *count) {
ico->recur->enddate = time_end_of_day (end);