Revision: 28289
http://sourceforge.net/p/bibdesk/svn/28289
Author: hofman
Date: 2023-06-05 09:22:52 +0000 (Mon, 05 Jun 2023)
Log Message:
-----------
remove log, rewrite loop condition
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2023-06-05 08:40:36 UTC (rev 28288)
+++ trunk/bibdesk/BibItem.m 2023-06-05 09:22:52 UTC (rev 28289)
@@ -3879,7 +3879,6 @@
for (match in [doiRegex findEnumeratorInString:string]) {
if ([match groupAtIndex:1] != nil && [match groupAtIndex:2] != nil)
[dois addObject:[NSString stringWithFormat:@"%@/%@", [match
groupAtIndex:1], [match groupAtIndex:2]]];
- NSLog(@"%@ %@",[match groupAtIndex:1],[match groupAtIndex:2]);
}
return dois;
}
@@ -3976,8 +3975,8 @@
if (bi == nil) {
// ... else directly parse text of first two pages for doi
- NSUInteger i = 0;
- for (; bi == nil && i < 2 && i < [pdfDoc pageCount]; i++) {
+ NSUInteger i;
+ for (i = 0; bi == nil && i < MIN(2, [pdfDoc pageCount]); i++) {
NSString *pageText = [[pdfDoc pageAtIndex:i] string];
// If we've got nothing to parse, try the next page
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