Revision: 12957 http://sourceforge.net/p/skim-app/code/12957 Author: hofman Date: 2022-06-26 21:38:10 +0000 (Sun, 26 Jun 2022) Log Message: ----------- don't make lines of selection, just get the correct edge
Modified Paths: -------------- trunk/SKReadingBar.m Modified: trunk/SKReadingBar.m =================================================================== --- trunk/SKReadingBar.m 2022-06-26 16:48:11 UTC (rev 12956) +++ trunk/SKReadingBar.m 2022-06-26 21:38:10 UTC (rev 12957) @@ -333,7 +333,8 @@ PDFSelection *selection = [[[PDFSelection selectionWithSpecifier:[[command arguments] objectForKey:@"To"]] selectionsByLine] firstObject]; if ([selection hasCharacters]) { aPage = [selection safeFirstPage]; - point = SKCenterPoint([selection boundsForPage:page]); + NSRect rect = [selection boundsForPage:aPage]; + point = [aPage lineDirectionAngle] < 180 ? NSMakePoint(NSMinX(rect) + 1.0, NSMinY(rect) + 1.0) : NSMakePoint(NSMaxX(rect) - 1.0, NSMaxY(rect) - 1.0); } } if (line == -1 && aPage) 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