mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 04:20:33 +00:00
propagate from branch 'ca.inverse.sogo.1_3_12' (head 7d5711d36b09624f7b8bf3747c0b7c2d743b3d00)
to branch 'ca.inverse.sogo' (head 15b9d9900d3605d1920661f52678d25d93c587ef) Monotone-Parent: 15b9d9900d3605d1920661f52678d25d93c587ef Monotone-Parent: 7d5711d36b09624f7b8bf3747c0b7c2d743b3d00 Monotone-Revision: ac81d77fda86dad3ce300e48e20f65bd639b24cb Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-02-03T16:59:00 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2012-02-03 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* iCalDailyRecurrenceCalculator.m
|
||||
(-recurrenceRangesWithinCalendarDateRange): handle the case
|
||||
where the occurrence start date doesn't cover the reference period
|
||||
but the end date does.
|
||||
|
||||
2012-01-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* NSString+NGCards.m (-asCardAttributeValues): fixed a leak by
|
||||
|
||||
@@ -144,26 +144,29 @@
|
||||
break;
|
||||
}
|
||||
|
||||
if (wrongDay == NO &&
|
||||
([startDate compare: currentStartDate] == NSOrderedAscending ||
|
||||
[startDate compare: currentStartDate] == NSOrderedSame))
|
||||
{
|
||||
NGCalendarDateRange *r;
|
||||
if (wrongDay == NO)
|
||||
{
|
||||
currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]];
|
||||
if ([startDate compare: currentStartDate] == NSOrderedAscending ||
|
||||
[startDate compare: currentStartDate] == NSOrderedSame ||
|
||||
[startDate compare: currentEndDate] == NSOrderedAscending)
|
||||
{
|
||||
NGCalendarDateRange *r;
|
||||
|
||||
if (isFirStart == NO && dayMask && repeatCount == 0)
|
||||
{
|
||||
if (![dayMask occursOnDay: [currentStartDate dayOfWeek]])
|
||||
wrongDay = YES;
|
||||
}
|
||||
|
||||
if (isFirStart == YES || wrongDay == NO)
|
||||
{
|
||||
currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]];
|
||||
r = [NGCalendarDateRange calendarDateRangeWithStartDate: currentStartDate
|
||||
endDate: currentEndDate];
|
||||
if ([_r containsDateRange: r] || [_r doesIntersectWithDateRange: r])
|
||||
[ranges addObject: r];
|
||||
}
|
||||
if (isFirStart == NO && dayMask && repeatCount == 0)
|
||||
{
|
||||
if (![dayMask occursOnDay: [currentStartDate dayOfWeek]])
|
||||
wrongDay = YES;
|
||||
}
|
||||
|
||||
if (isFirStart == YES || wrongDay == NO)
|
||||
{
|
||||
r = [NGCalendarDateRange calendarDateRangeWithStartDate: currentStartDate
|
||||
endDate: currentEndDate];
|
||||
if ([_r containsDateRange: r] || [_r doesIntersectWithDateRange: r])
|
||||
[ranges addObject: r];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
currentStartDate = [firStart dateByAddingYears: 0 months: 0
|
||||
|
||||
Reference in New Issue
Block a user