Revision: 12830 http://sourceforge.net/p/skim-app/code/12830 Author: hofman Date: 2022-04-07 15:49:56 +0000 (Thu, 07 Apr 2022) Log Message: ----------- just use left margin, as that is the only one we will use, and PDFView actually interprets the margin in rotated page space
Modified Paths: -------------- trunk/SKBasePDFView.m Modified: trunk/SKBasePDFView.m =================================================================== --- trunk/SKBasePDFView.m 2022-04-07 15:46:53 UTC (rev 12829) +++ trunk/SKBasePDFView.m 2022-04-07 15:49:56 UTC (rev 12830) @@ -262,9 +262,9 @@ if ([self displaysPageBreaks]) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpartial-availability" - NSEdgeInsets margins = [self pageBreakMargins]; + CGFloat margin = [self pageBreakMargins].left; #pragma clang diagnostic pop - bounds = NSInsetRect(bounds, -margins.left, ([page rotation] % 180) == 0 ? -margins.bottom : -margins.left); + bounds = NSInsetRect(bounds, -margin, margin); } bounds = [self convertRect:[self convertRect:bounds fromPage:page] toView:clipView]; [clipView scrollToPoint:NSMakePoint(NSMinX(bounds), NSMinY([clipView bounds]))]; 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