From 7f89be188c8b9b3a50835af124b2ab96e7086e1f Mon Sep 17 00:00:00 2001 From: wolfgang Date: Wed, 23 Jan 2008 03:45:12 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1336 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOPE/NGCards/ChangeLog | 5 +++++ SOPE/NGCards/iCalRecurrenceRule.m | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index 15921e0c..fbac587b 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,8 @@ +2008-01-22 Wolfgang Sourdeau + + * iCalRecurrenceRule.m ([iCalRecurrenceRule -repeatInterval]): + return 1 if the parsed value is < 1. + 2007-12-20 Wolfgang Sourdeau * NSString+NGCards.m ([NSString diff --git a/SOPE/NGCards/iCalRecurrenceRule.m b/SOPE/NGCards/iCalRecurrenceRule.m index ea981406..bc4efc4c 100644 --- a/SOPE/NGCards/iCalRecurrenceRule.m +++ b/SOPE/NGCards/iCalRecurrenceRule.m @@ -237,7 +237,13 @@ - (int) repeatInterval { - return [[self namedValue: @"interval"] intValue]; + int interval; + + interval = [[self namedValue: @"interval"] intValue]; + if (interval < 1) + interval = 1; + + return interval; } - (void) setWkst: (NSString *) _weekStart -- 2.39.5