Revision: 29365
          http://sourceforge.net/p/bibdesk/svn/29365
Author:   hofman
Date:     2025-07-25 15:34:48 +0000 (Fri, 25 Jul 2025)
Log Message:
-----------
revert last commit

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2025-07-25 15:33:18 UTC (rev 29364)
+++ trunk/bibdesk/BibItem.m     2025-07-25 15:34:48 UTC (rev 29365)
@@ -4211,12 +4211,12 @@
     
     // add unresolved URLs back in, and make sure the remaining keys are 
contiguous
     if (unresolvedFileCount) {
-        for (i = 1; i <= unresolvedFileCount; i++)
-            [pubFields setObject:[unresolvedFiles objectAtIndex:i] 
forKey:[NSString stringWithFormat:@"Bdsk-File-%lu", (unsigned long)i]];
+        for (i = 0; i < unresolvedFileCount; i++)
+            [pubFields setObject:[unresolvedFiles objectAtIndex:i] 
forKey:[NSString stringWithFormat:@"Bdsk-File-%lu", (unsigned long)(i + 1)]];
     }
     if (unresolvedURLCount) {
-        for (i = 1; i <= unresolvedURLCount; i++)
-            [pubFields setObject:[unresolvedURLs objectAtIndex:i] 
forKey:[NSString stringWithFormat:@"Bdsk-Url-%lu", (unsigned long)i]];
+        for (i = 0; i < unresolvedURLCount; i++)
+            [pubFields setObject:[unresolvedURLs objectAtIndex:i] 
forKey:[NSString stringWithFormat:@"Bdsk-Url-%lu", (unsigned long)(i + 1)]];
     }
     
     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
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to