diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index cb2732934..f906ac05a 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Francis Lachapelle + + * iCalRecurrenceRule.m (-isInfinite): a repeat count set to 0 is + no longer consider a limit (ie, isInfinite will be true). + 2010-10-27 Wolfgang Sourdeau * NGVCard.m (-setCategories): make use of the new method below. diff --git a/SOPE/NGCards/iCalRecurrenceRule.m b/SOPE/NGCards/iCalRecurrenceRule.m index 763a896dd..03238e42f 100644 --- a/SOPE/NGCards/iCalRecurrenceRule.m +++ b/SOPE/NGCards/iCalRecurrenceRule.m @@ -514,7 +514,7 @@ NSString *iCalWeekDayString[] = { @"SU", @"MO", @"TU", @"WE", @"TH", @"FR", - (BOOL) isInfinite { - return !([self repeatCount] || [self untilDate]); + return !(([self repeatCount] && [self repeatCount] > 0) || [self untilDate]); } /* private */