Revision: 29060 http://sourceforge.net/p/bibdesk/svn/29060 Author: hofman Date: 2025-02-24 15:47:32 +0000 (Mon, 24 Feb 2025) Log Message: ----------- Let the system handle indices of simple range of groups without mixed types. This avoids a bug in returning single groups in normal cases.
Modified Paths: -------------- trunk/bibdesk/BibDocument+Scripting.m Modified: trunk/bibdesk/BibDocument+Scripting.m =================================================================== --- trunk/bibdesk/BibDocument+Scripting.m 2025-02-24 15:17:46 UTC (rev 29059) +++ trunk/bibdesk/BibDocument+Scripting.m 2025-02-24 15:47:32 UTC (rev 29060) @@ -728,6 +728,10 @@ // We need to have at least one of these... return nil; + if ([startSpec containerSpecifier] == nil && [startKey isEqualToString:key] && [endSpec containerSpecifier] == nil && [endKey isEqualToString:key]) + // Just an ordinary range of (a type of) groups. Let the system handle this. + return nil; + if ([allGroups count] == 0) // If there are no groups, there can be no match. Just return now. return @[]; 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