Revision: 12973
          http://sourceforge.net/p/skim-app/code/12973
Author:   hofman
Date:     2022-06-28 16:50:09 +0000 (Tue, 28 Jun 2022)
Log Message:
-----------
start from maxLine rather than number of lines when no line yet

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

Modified: trunk/SKReadingBar.m
===================================================================
--- trunk/SKReadingBar.m        2022-06-28 16:41:21 UTC (rev 12972)
+++ trunk/SKReadingBar.m        2022-06-28 16:50:09 UTC (rev 12973)
@@ -213,7 +213,7 @@
     NSRect oldBounds = currentBounds;
     BOOL didMove = NO;
     if (currentLine == -1 && lineCount)
-        currentLine = lineCount;
+        currentLine = [self maxLine] + 1;
     if (currentLine > 0) {
         --currentLine;
         [self setCurrentBounds:[self currentBoundsFromLineRects:nil]];

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