Revision: 14826
          http://sourceforge.net/p/skim-app/code/14826
Author:   hofman
Date:     2024-12-11 15:46:58 +0000 (Wed, 11 Dec 2024)
Log Message:
-----------
don't use a local variable

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-11 15:37:50 UTC (rev 14825)
+++ trunk/SKPDFView.m   2024-12-11 15:46:58 UTC (rev 14826)
@@ -2831,7 +2831,6 @@
 }
 
 - (void)updatedAnnotation:(PDFAnnotation *)annotation forKey:(NSString *)key 
fromValue:(id)oldValue {
-    BOOL updateHighlight = key == nil || [key 
isEqualToString:SKNPDFAnnotationBoundsKey] || [key 
isEqualToString:SKNPDFAnnotationDrawsImageKey];
     if ([annotation isNote] && key) {
         // image does not notify automatically because it does not use the 
annotationKeyValues
         if ([key isEqualToString:SKNPDFAnnotationImageKey]) {
@@ -2841,7 +2840,7 @@
             [self resetPDFToolTipRects];
         }
     }
-    if (updateHighlight && annotation == currentAnnotation && 
atomic_load(&highlightLayerState) != SKLayerUse) {
+    if (annotation == currentAnnotation && (key == nil || [key 
isEqualToString:SKNPDFAnnotationBoundsKey] || [key 
isEqualToString:SKNPDFAnnotationDrawsImageKey]) && 
atomic_load(&highlightLayerState) != SKLayerUse) {
         CGFloat margin = (([annotation isResizable] || [annotation isNote]) ? 
HANDLE_SIZE  : 1.0) / [self scaleFactor];
         NSRect rect = [annotation bounds];
         if ([key isEqualToString:SKNPDFAnnotationBoundsKey] && [oldValue 
isKindOfClass:[NSValue class]])

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

Reply via email to