Revision: 16710
          http://sourceforge.net/p/skim-app/code/16710
Author:   hofman
Date:     2026-10-24 22:48:14 +0000 (Sat, 24 Oct 2026)
Log Message:
-----------
use correct maximum page index

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2026-10-24 22:44:10 UTC (rev 
16709)
+++ trunk/SKMainWindowController_FullScreen.m   2026-10-24 22:48:14 UTC (rev 
16710)
@@ -185,7 +185,7 @@
     NSDocument *notesDocument = [self presentationNotesDocument];
     PDFDocument *pdfDoc = [notesDocument pdfDocument];
     NSInteger offset = [self presentationNotesOffset];
-    NSUInteger pageIndex = MAX(0, MIN((NSInteger)[pdfDoc pageCount], 
(NSInteger)[[pdfView currentPage] pageIndex] + offset));
+    NSUInteger pageIndex = MAX(0, MIN((NSInteger)[pdfDoc pageCount] - 1, 
(NSInteger)[[pdfView currentPage] pageIndex] + offset));
     
     if (presentationNotesAuxiliary == nil)
         presentationNotesAuxiliary = [[SKPresentationNotesAuxiliary alloc] 
init];

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