Revision: 29364
http://sourceforge.net/p/bibdesk/svn/29364
Author: hofman
Date: 2025-07-25 15:33:18 +0000 (Fri, 25 Jul 2025)
Log Message:
-----------
enumerate 1-based index
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2025-07-25 15:30:08 UTC (rev 29363)
+++ trunk/bibdesk/BibItem.m 2025-07-25 15:33:18 UTC (rev 29364)
@@ -4211,12 +4211,12 @@
// add unresolved URLs back in, and make sure the remaining keys are
contiguous
if (unresolvedFileCount) {
- for (i = 0; i < unresolvedFileCount; i++)
- [pubFields setObject:[unresolvedFiles objectAtIndex:i]
forKey:[NSString stringWithFormat:@"Bdsk-File-%lu", (unsigned long)(i + 1)]];
+ for (i = 1; i <= unresolvedFileCount; i++)
+ [pubFields setObject:[unresolvedFiles objectAtIndex:i]
forKey:[NSString stringWithFormat:@"Bdsk-File-%lu", (unsigned long)i]];
}
if (unresolvedURLCount) {
- for (i = 0; i < unresolvedURLCount; i++)
- [pubFields setObject:[unresolvedURLs objectAtIndex:i]
forKey:[NSString stringWithFormat:@"Bdsk-Url-%lu", (unsigned long)(i + 1)]];
+ for (i = 1; i <= unresolvedURLCount; i++)
+ [pubFields setObject:[unresolvedURLs objectAtIndex:i]
forKey:[NSString stringWithFormat:@"Bdsk-Url-%lu", (unsigned long)i]];
}
biFlags.createdFilesArray = YES;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit