Revision: 12942
          http://sourceforge.net/p/skim-app/code/12942
Author:   hofman
Date:     2022-06-24 14:56:53 +0000 (Fri, 24 Jun 2022)
Log Message:
-----------
go to earlier line if new document has less lines on page

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2022-06-24 14:34:02 UTC (rev 12941)
+++ trunk/SKPDFView.m   2022-06-24 14:56:53 UTC (rev 12942)
@@ -568,8 +568,8 @@
         }
         if (page) {
             SKReadingBar *aReadingBar = [[SKReadingBar alloc] 
initWithPage:page];
-            if (readingBarLine <= [aReadingBar maxLine])
-                [aReadingBar setCurrentLine:readingBarLine];
+            if ([aReadingBar maxLine] != -1)
+                [aReadingBar setCurrentLine:MIN(readingBarLine, [aReadingBar 
maxLine])];
             else
                 [aReadingBar goToNextLine];
             [self setReadingBar:aReadingBar];

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to