Revision: 12954 http://sourceforge.net/p/skim-app/code/12954 Author: hofman Date: 2022-06-25 19:09:57 +0000 (Sat, 25 Jun 2022) Log Message: ----------- go to previous page if no non empty next page
Modified Paths: -------------- trunk/SKReadingBar.m Modified: trunk/SKReadingBar.m =================================================================== --- trunk/SKReadingBar.m 2022-06-25 18:58:03 UTC (rev 12953) +++ trunk/SKReadingBar.m 2022-06-25 19:09:57 UTC (rev 12954) @@ -275,10 +275,10 @@ - (void)goToLine:(NSInteger)line onPage:(PDFPage *)aPage { if (page != aPage) [self setPage:aPage]; - if ([lineRects count] == 0) - [self goToNextPageAtTop:YES]; + if ([lineRects count]) + [self setCurrentLine:MAX(0, MIN([self maxLine], line))]; else - [self setCurrentLine:MAX(0, MIN([self maxLine], line))]; + [self goToNextPageAtTop:YES] || [self goToPreviousPageAtTop:NO]; } - (void)drawForPage:(PDFPage *)pdfPage withBox:(PDFDisplayBox)box inContext:(CGContextRef)context { 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