Revision: 28948
          http://sourceforge.net/p/bibdesk/svn/28948
Author:   hofman
Date:     2024-09-17 14:38:18 +0000 (Tue, 17 Sep 2024)
Log Message:
-----------
interpret missing date-added or date-modified for smart group conditions as far 
into the past

Modified Paths:
--------------
    trunk/bibdesk/BDSKCondition.m

Modified: trunk/bibdesk/BDSKCondition.m
===================================================================
--- trunk/bibdesk/BDSKCondition.m       2024-09-06 12:37:59 UTC (rev 28947)
+++ trunk/bibdesk/BDSKCondition.m       2024-09-17 14:38:18 UTC (rev 28948)
@@ -220,8 +220,8 @@
             date = [item dateAdded];
         else if ([key isEqualToString:BDSKDateModifiedString])
             date = [item dateModified];
-        return ((cachedStartDate == nil || [date compare:cachedStartDate] != 
NSOrderedAscending) &&
-                (cachedEndDate == nil || [date compare:cachedEndDate] == 
NSOrderedAscending));
+        return (cachedStartDate == nil || (date && [date 
compare:cachedStartDate] != NSOrderedAscending)) &&
+                (cachedEndDate == nil || (date == nil || [date 
compare:cachedEndDate] == NSOrderedAscending));
         
     } else if ([self isAttachmentCondition]) {
         

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to