From a644620169a52b4bb5ea270021f6e8a20e104e82 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Fri, 11 Apr 2008 17:01:32 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1398 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOPE/NGCards/ChangeLog | 8 ++++++++ SOPE/NGCards/iCalRecurrenceCalculator.m | 7 ++----- SoObjects/SOGo/SOGoGCSFolder.m | 1 + 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index 434420f9..3263427f 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,11 @@ +2008-04-02 Wolfgang Sourdeau + + * iCalRecurrenceCalculator.m ([iCalRecurrenceCalculator + +recurrenceRangesWithinCalendarDateRange:_rfirstInstanceCalendarDateRange:_firrecurrenceRules:_rRulesexceptionRules:_exRulesexceptionDates:_exDates]): + when removing dates, the decremental count of dates to remove was + actually incremental, which caused an out of bound reference + exception. + 2008-03-26 Wolfgang Sourdeau * iCalRecurrenceRule.m ([iCalRecurrenceRule -byMonthDay]): check diff --git a/SOPE/NGCards/iCalRecurrenceCalculator.m b/SOPE/NGCards/iCalRecurrenceCalculator.m index c3e9b8ed..b946bdbc 100644 --- a/SOPE/NGCards/iCalRecurrenceCalculator.m +++ b/SOPE/NGCards/iCalRecurrenceCalculator.m @@ -194,14 +194,11 @@ static Class yearlyCalcClass = Nil; maxRanges = [ranges count]; dates = [[self _dates: exdates withinRange: limits] objectEnumerator]; while ((currentDate = [dates nextObject])) - for (count = (maxRanges - 1); count > -1; count++) + for (count = (maxRanges - 1); count > -1; count--) { currentRange = [ranges objectAtIndex: count]; if ([currentRange containsDate: currentDate]) - { - [ranges removeObjectAtIndex: count]; - maxRanges--; - } + [ranges removeObjectAtIndex: count]; } } diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index d7f6c6b7..4fea87a1 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -74,6 +74,7 @@ static BOOL sendFolderAdvisories = NO; NSUserDefaults *ud; ud = [NSUserDefaults standardUserDefaults]; + sendFolderAdvisories = [ud boolForKey: @"SOGoFoldersSendEMailNotifications"]; } -- 2.39.5