Revision: 14791
http://sourceforge.net/p/skim-app/code/14791
Author: hofman
Date: 2024-12-08 17:24:03 +0000 (Sun, 08 Dec 2024)
Log Message:
-----------
No need to check for currentAnnotation twice
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2024-12-08 17:10:20 UTC (rev 14790)
+++ trunk/SKPDFView.m 2024-12-08 17:24:03 UTC (rev 14791)
@@ -2839,10 +2839,8 @@
[self annotationsChangedOnPage:page];
if (annotation == currentAnnotation && atomic_load(&highlightLayerState)
!= SKLayerUse && needsRedraw) {
NSRect rect = NSUnionRect([annotation displayRect], oldRect);
- if (annotation == currentAnnotation) {
- CGFloat margin = (([annotation isResizable] || [annotation
isNote]) ? HANDLE_SIZE : 1.0) / [self scaleFactor];
- rect = NSInsetRect(rect, -margin, -margin);
- }
+ CGFloat margin = (([annotation isResizable] || [annotation isNote]) ?
HANDLE_SIZE : 1.0) / [self scaleFactor];
+ rect = NSInsetRect(rect, -margin, -margin);
[self setNeedsDisplayInRect:rect 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