From c7d1f1bc09a78d61dcc61b701084a8b507b7394c Mon Sep 17 00:00:00 2001 From: znek Date: Wed, 2 Mar 2005 12:59:58 +0000 Subject: [PATCH] bugfix, bumped versions git-svn-id: http://svn.opengroupware.org/SOPE/trunk@607 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/ChangeLog | 4 ++++ sope-core/NGExtensions/NGCalendarDateRange.m | 13 ++++++++++--- .../NGExtensions/NGExtensions.xcode/project.pbxproj | 2 +- sope-core/NGExtensions/Version | 2 +- sope-core/sope-core.xcode/project.pbxproj | 8 ++++---- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index 183b935c..4857ac00 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,3 +1,7 @@ +2005-03-02 Marcus Mueller + + * NGCalendarDateRange.m: Bugfix for -containsDate: (v4.5.154) + 2005-03-01 Helge Hess * NGBundleManager.m (-pathForResource:ofType:inDirectory:languages:): diff --git a/sope-core/NGExtensions/NGCalendarDateRange.m b/sope-core/NGExtensions/NGCalendarDateRange.m index baed5ff5..c6b1ce28 100644 --- a/sope-core/NGExtensions/NGCalendarDateRange.m +++ b/sope-core/NGExtensions/NGCalendarDateRange.m @@ -125,9 +125,16 @@ return [NGCalendarDateRange calendarDateRangeWithStartDate:a endDate:b]; } -- (BOOL)containsDate:(NSCalendarDate *)date { - return ([self->startDate earlierDate:date] == self->startDate && - [self->endDate compare:date] == NSOrderedDescending) ? YES : NO; +- (BOOL)containsDate:(NSCalendarDate *)_date { + NSComparisonResult result; + + result = [self->startDate compare:_date]; + if (!((result == NSOrderedSame) || (result == NSOrderedAscending))) + return NO; + result = [self->endDate compare:_date]; + if (result == NSOrderedAscending) + return NO; + return YES; } - (BOOL)containsDateRange:(NGCalendarDateRange *)_range { diff --git a/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj b/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj index a3c0c363..656d865c 100644 --- a/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj +++ b/sope-core/NGExtensions/NGExtensions.xcode/project.pbxproj @@ -1715,7 +1715,7 @@ ); buildSettings = { DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4.5.144; + DYLIB_CURRENT_VERSION = 4.5.154; FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks"; FRAMEWORK_VERSION = A; GCC_PRECOMPILE_PREFIX_HEADER = YES; diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index e21b17b7..d0fd569f 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,6 +1,6 @@ # version -SUBMINOR_VERSION:=153 +SUBMINOR_VERSION:=154 # v4.3.115 requires libFoundation v1.0.59 # v4.2.72 requires libEOControl v4.2.39 diff --git a/sope-core/sope-core.xcode/project.pbxproj b/sope-core/sope-core.xcode/project.pbxproj index cc1861d4..9dab271c 100644 --- a/sope-core/sope-core.xcode/project.pbxproj +++ b/sope-core/sope-core.xcode/project.pbxproj @@ -65,10 +65,6 @@ mainGroup = ADDF476606DA572500C4E7F8; projectDirPath = ""; projectReferences = ( - { - ProductGroup = ADDF478506DA580C00C4E7F8; - ProjectRef = ADDF478406DA580C00C4E7F8; - }, { ProductGroup = ADDF478706DA581F00C4E7F8; ProjectRef = ADDF478606DA581F00C4E7F8; @@ -77,6 +73,10 @@ ProductGroup = ADDF478906DA583300C4E7F8; ProjectRef = ADDF478806DA583300C4E7F8; }, + { + ProductGroup = ADDF478506DA580C00C4E7F8; + ProjectRef = ADDF478406DA580C00C4E7F8; + }, ); targets = ( ADDF479906DA58D700C4E7F8, -- 2.39.5