Monotone-Parent: f1a929eda62ac5fe22596efe98c5a812783f90c5

Monotone-Revision: 9c4be3d7d32f456638c073296f3c3b84ca2f6ea9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-06T17:38:40
This commit is contained in:
Wolfgang Sourdeau
2011-12-06 17:38:40 +00:00
parent 071db38df9
commit e05939e8a0
2 changed files with 12 additions and 4 deletions
+9 -4
View File
@@ -274,14 +274,19 @@
{
NSCalendarDate *start, *end;
NGCalendarDateRange *firstRange;
NSArray *dates;
firstRange = nil;
start = [self startDate];
end = [start addTimeInterval: [self occurenceInterval]];
dates = [[[self uniqueChildWithTag: @"dtstart"] valuesForKey: @""] lastObject];
if ([dates count] > 0)
{
start = [[dates lastObject] asCalendarDate];
end = [start addTimeInterval: [self occurenceInterval]];
firstRange = [NGCalendarDateRange calendarDateRangeWithStartDate: start
endDate: end];
firstRange = [NGCalendarDateRange calendarDateRangeWithStartDate: start
endDate: end];
}
return firstRange;
}