Revision: 14809
          http://sourceforge.net/p/skim-app/code/14809
Author:   hofman
Date:     2024-12-10 10:32:36 +0000 (Tue, 10 Dec 2024)
Log Message:
-----------
no need for variable

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-10 10:31:35 UTC (rev 14808)
+++ trunk/SKPDFView.m   2024-12-10 10:32:36 UTC (rev 14809)
@@ -2840,12 +2840,11 @@
     if ([annotation isNote] && ([key isEqualToString:SKNPDFAnnotationImageKey] 
|| [key isEqualToString:SKNPDFAnnotationDrawsImageKey]))
         [super updatedAnnotation:annotation];
     if (updateHighlight && annotation == currentAnnotation && 
atomic_load(&highlightLayerState) != SKLayerUse) {
-        PDFPage *page = [annotation page];
         CGFloat margin = (([annotation isResizable] || [annotation isNote]) ? 
HANDLE_SIZE  : 1.0) / [self scaleFactor];
         NSRect rect = [annotation bounds];
         if ([key isEqualToString:SKNPDFAnnotationBoundsKey] && [oldValue 
isKindOfClass:[NSValue class]])
             rect = NSUnionRect(rect, [oldValue rectValue]);
-        [self setNeedsDisplayInRect:NSInsetRect(rect, -margin, -margin) 
ofPage:page];
+        [self setNeedsDisplayInRect:NSInsetRect(rect, -margin, -margin) 
ofPage:[annotation 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
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to