Revision: 16637
          http://sourceforge.net/p/skim-app/code/16637
Author:   hofman
Date:     2026-10-08 17:09:08 +0000 (Thu, 08 Oct 2026)
Log Message:
-----------
we already checked implicitly

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

Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m       2026-10-08 16:59:43 UTC (rev 16636)
+++ trunk/SKBasePDFView.m       2026-10-08 17:09:08 UTC (rev 16637)
@@ -385,9 +385,7 @@
         [super goToPreviousPage:sender];
     } else if (displayMode == kPDFDisplaySinglePageContinuous && [self 
displayDirection]) {
         PDFDocument *doc = [self document];
-        NSUInteger i = [doc indexForPage:[self currentPage]];
-        if (i > 0)
-            [self horizontallyGoToPage:[doc pageAtIndex:i - 1] action:_cmd];
+        [self horizontallyGoToPage:[doc pageAtIndex:[doc indexForPage:[self 
currentPage]] - 1] action:_cmd];
     } else {
         PDFDocument *doc = [self document];
         NSUInteger i = [doc indexForPage:[self currentPage]];
@@ -405,9 +403,7 @@
         [super goToNextPage:sender];
     } else if (displayMode == kPDFDisplaySinglePageContinuous && [self 
displayDirection]) {
         PDFDocument *doc = [self document];
-        NSUInteger i = [doc indexForPage:[self currentPage]];
-        if (i + 1 < [doc pageCount])
-            [self horizontallyGoToPage:[doc pageAtIndex:i + 1] action:_cmd];
+        [self horizontallyGoToPage:[doc pageAtIndex:[doc indexForPage:[self 
currentPage]] + 1] action:_cmd];
     } else {
         PDFDocument *doc = [self document];
         NSUInteger i = [doc indexForPage:[self currentPage]];

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