Revision: 14352
http://sourceforge.net/p/skim-app/code/14352
Author: hofman
Date: 2024-06-30 14:38:08 +0000 (Sun, 30 Jun 2024)
Log Message:
-----------
Don't offset note highlight in layer by visible content rect, as we do that in
the bounds offset of the layer
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2024-06-30 14:34:21 UTC (rev 14351)
+++ trunk/SKPDFView.m 2024-06-30 14:38:08 UTC (rev 14352)
@@ -505,7 +505,7 @@
if (currentAnnotation == nil)
return;
PDFPage *page = [currentAnnotation page];
- NSPoint offset = SKSubstractPoints([self convertRect:[page
boundsForBox:[self displayBox]] fromPage:page].origin, [self
visibleContentRect].origin);
+ NSPoint offset = [self convertRect:[page boundsForBox:[self
displayBox]] fromPage:page].origin;
CGFloat scaleFactor = [self scaleFactor];
CGContextSaveGState(context);
CGContextTranslateCTM(context, offset.x, offset.y);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit