Revision: 16719
http://sourceforge.net/p/skim-app/code/16719
Author: hofman
Date: 2026-10-26 18:12:20 +0000 (Mon, 26 Oct 2026)
Log Message:
-----------
et variabble only when needed
Modified Paths:
--------------
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2026-10-26 18:10:30 UTC (rev
16718)
+++ trunk/SKMainWindowController_FullScreen.m 2026-10-26 18:12:20 UTC (rev
16719)
@@ -183,11 +183,12 @@
- (PDFPage *)pageForPresentationNotes {
NSDocument *notesDocument = [self presentationNotesDocument];
- PDFDocument *pdfDoc = [notesDocument pdfDocument];
NSInteger offset = [self presentationNotesOffset];
PDFPage *page = [pdfView currentPage];
- if (notesDocument != [self document] || offset != 0)
+ if (notesDocument != [self document] || offset != 0) {
+ PDFDocument *pdfDoc = [notesDocument pdfDocument];
page = [pdfDoc pageAtIndex:MAX(0, MIN((NSInteger)[pdfDoc pageCount] -
1, (NSInteger)[page pageIndex] + offset))];
+ }
return page;
}
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