Revision: 13624
          http://sourceforge.net/p/skim-app/code/13624
Author:   hofman
Date:     2023-09-01 14:34:23 +0000 (Fri, 01 Sep 2023)
Log Message:
-----------
count for temporary document is one more than largest page index

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-09-01 09:23:36 UTC (rev 13623)
+++ trunk/SKMainWindowController.m      2023-09-01 14:34:23 UTC (rev 13624)
@@ -1034,7 +1034,7 @@
     
     if ([pdfDoc allowsNotes] == NO && [noteDicts count] > 0) {
         // there should not be any notesToRemove at this point
-        NSUInteger i, pageCount = MIN([pdfDoc pageCount], [[noteDicts 
valueForKeyPath:@"@max.pageIndex"] unsignedIntegerValue]);
+        NSUInteger i, pageCount = MIN([pdfDoc pageCount], [[noteDicts 
valueForKeyPath:@"@max.pageIndex"] unsignedIntegerValue] + 1);
         SKDESTROY(placeholderPdfDocument);
         pdfDoc = placeholderPdfDocument = [[SKPDFDocument alloc] init];
         [placeholderPdfDocument setContainingDocument:[self document]];

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to