Revision: 14808
http://sourceforge.net/p/skim-app/code/14808
Author: hofman
Date: 2024-12-10 10:31:35 +0000 (Tue, 10 Dec 2024)
Log Message:
-----------
dirty union of old and new bounds, the exeact bounds does not matter anyway
because it always redraws the whole page
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2024-12-10 10:17:03 UTC (rev 14807)
+++ trunk/SKPDFView.m 2024-12-10 10:31:35 UTC (rev 14808)
@@ -2842,9 +2842,10 @@
if (updateHighlight && annotation == currentAnnotation &&
atomic_load(&highlightLayerState) != SKLayerUse) {
PDFPage *page = [annotation page];
CGFloat margin = (([annotation isResizable] || [annotation isNote]) ?
HANDLE_SIZE : 1.0) / [self scaleFactor];
- [self setNeedsDisplayInRect:NSInsetRect([annotation bounds], -margin,
-margin) ofPage:page];
+ NSRect rect = [annotation bounds];
if ([key isEqualToString:SKNPDFAnnotationBoundsKey] && [oldValue
isKindOfClass:[NSValue class]])
- [self setNeedsDisplayInRect:NSInsetRect([oldValue rectValue],
-margin, -margin) ofPage:page];
+ rect = NSUnionRect(rect, [oldValue rectValue]);
+ [self setNeedsDisplayInRect:NSInsetRect(rect, -margin, -margin)
ofPage:page];
} else {
[loupeController updateContents];
}
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