);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.48;
+ DYLIB_CURRENT_VERSION = 4.5.49;
FRAMEWORK_SEARCH_PATHS = "\"$(USER_LIBRARY_DIR)/EmbeddedFrameworks\"";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.48;
+ DYLIB_CURRENT_VERSION = 4.5.49;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
- (NSArray *)recurrenceRangesWithinCalendarDateRange:(NGCalendarDateRange *)_r {
NSMutableArray *ranges;
NSCalendarDate *firStart, *rStart, *rEnd, *until;
- unsigned i, count, interval, diff;
+ unsigned i, count, interval;
+ int diff;
firStart = [self->firstRange startDate];
rStart = [_r startDate];
}
diff = [firStart monthsBetweenDate:rStart];
+ if ((diff != 0) && [rStart compare:firStart] == NSOrderedAscending)
+ diff = -diff;
+
count = [rStart monthsBetweenDate:rEnd] + 1;
ranges = [NSMutableArray arrayWithCapacity:count];
for (i = 0 ; i < count; i++) {
- unsigned test;
+ int test;
test = diff + i;
- if ((test % interval) == 0) {
+ if ((test >= 0) && (test % interval) == 0) {
NSCalendarDate *start, *end;
NGCalendarDateRange *r;
- (NSArray *)recurrenceRangesWithinCalendarDateRange:(NGCalendarDateRange *)_r {
NSMutableArray *ranges;
NSCalendarDate *firStart, *rStart, *rEnd, *until;
- unsigned i, count, interval, diff;
+ unsigned i, count, interval;
+ int diff;
firStart = [self->firstRange startDate];
rStart = [_r startDate];
}
diff = [firStart yearsBetweenDate:rStart];
+ if ((diff != 0) && [rStart compare:firStart] == NSOrderedAscending)
+ diff = -diff;
+
count = [rStart yearsBetweenDate:rEnd] + 1;
ranges = [NSMutableArray arrayWithCapacity:count];
for (i = 0 ; i < count; i++) {
- unsigned test;
+ int test;
test = diff + i;
- if ((test % interval) == 0) {
+ if ((test >= 0) && (test % interval) == 0) {
NSCalendarDate *start, *end;
NGCalendarDateRange *r;