diff --git a/SOPE/NGCards/iCalWeeklyRecurrenceCalculator.m b/SOPE/NGCards/iCalWeeklyRecurrenceCalculator.m index 29cf92724..e3786ba7a 100644 --- a/SOPE/NGCards/iCalWeeklyRecurrenceCalculator.m +++ b/SOPE/NGCards/iCalWeeklyRecurrenceCalculator.m @@ -163,7 +163,8 @@ currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]]; if (hasRepeatCount || - [startDate compare: currentEndDate] == NSOrderedAscending) + [startDate compare: currentEndDate] == NSOrderedAscending || + ([startDate compare: currentEndDate] == NSOrderedSame && [firstRange duration] == 0)) { // If the rule count is defined, stop once the count is reached. if ([currentStartDate compare: firStart] == NSOrderedSame)