From b6093e05d6904d2a8c08c64b79e639e0447b85b4 Mon Sep 17 00:00:00 2001 From: znek Date: Mon, 23 Aug 2004 15:44:29 +0000 Subject: [PATCH] fix to NGCalendarDateRange git-svn-id: http://svn.opengroupware.org/SOPE/trunk@43 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/ChangeLog | 8 +++++++- sope-core/NGExtensions/NGCalendarDateRange.m | 2 ++ sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj | 2 +- sope-core/NGExtensions/Version | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index 645472bb..aeb1eef1 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,4 +1,10 @@ -2004-08-16 Marcus Mueller +2004-08-22 Marcus Mueller + + * v4.3.106 + + * NGCalendarDateRange.m: changed -containsDate: in a way that the range + is treated as a half-open interval (including startDate, excluding + endDate). * v4.3.105 diff --git a/sope-core/NGExtensions/NGCalendarDateRange.m b/sope-core/NGExtensions/NGCalendarDateRange.m index 74e5ce7e..1bb48864 100644 --- a/sope-core/NGExtensions/NGCalendarDateRange.m +++ b/sope-core/NGExtensions/NGCalendarDateRange.m @@ -117,6 +117,8 @@ } - (BOOL)containsDate:(NSCalendarDate *)date { + if([self->endDate isEqualToDate:date]) + return NO; return ([self->startDate earlierDate:date] == self->startDate && [self->endDate laterDate:date] == self->endDate) ? YES : NO; } diff --git a/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj b/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj index b57b4c50..916781d8 100644 --- a/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj +++ b/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj @@ -1109,7 +1109,7 @@ ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.3.105; + DYLIB_CURRENT_VERSION = 4.3.106; FRAMEWORK_SEARCH_PATHS = "\"$(LOCAL_LIBRARY_DIR)/Frameworks\" /Local/BuildArea"; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index d247db9f..b12aa9c0 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,5 +1,5 @@ # $Id$ -SUBMINOR_VERSION:=105 +SUBMINOR_VERSION:=106 # v4.2.72 requires libEOControl v4.2.39 -- 2.39.5