Revision: 14823
          http://sourceforge.net/p/skim-app/code/14823
Author:   hofman
Date:     2024-12-11 15:18:18 +0000 (Wed, 11 Dec 2024)
Log Message:
-----------
avoid checks in some generic case

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-11 15:15:31 UTC (rev 14822)
+++ trunk/SKPDFView.m   2024-12-11 15:18:18 UTC (rev 14823)
@@ -2833,7 +2833,7 @@
 - (void)updatedAnnotation:(PDFAnnotation *)annotation forKey:(NSString *)key 
fromValue:(id)oldValue {
     BOOL updateHighlight = key == nil || [key 
isEqualToString:SKNPDFAnnotationBoundsKey] || [key 
isEqualToString:SKNPDFAnnotationDrawsImageKey];
     // these properties don't notify automatically because they don't use the 
annotationValue
-    if ([annotation isNote]) {
+    if ([annotation isNote] && key) {
         if ([key isEqualToString:SKNPDFAnnotationImageKey] || [key 
isEqualToString:SKNPDFAnnotationDrawsImageKey]) {
             [super updatedAnnotation:annotation];
         } else if ([key isEqualToString:SKNPDFAnnotationBoundsKey]) {

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