Revision: 13662
          http://sourceforge.net/p/skim-app/code/13662
Author:   hofman
Date:     2023-09-11 14:12:18 +0000 (Mon, 11 Sep 2023)
Log Message:
-----------
don't note changed annotations twice

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-09-11 13:53:34 UTC (rev 13661)
+++ trunk/SKPDFView.m   2023-09-11 14:12:18 UTC (rev 13662)
@@ -3267,12 +3267,9 @@
 #pragma mark Notification handling
 
 - (void)handleDidAddAnnotationNotification:(NSNotification *)notification {
-    NSDictionary *userInfo = [notification userInfo];
-    PDFAnnotation *annotation = [userInfo 
objectForKey:SKPDFDocumentAnnotationKey];
-    PDFPage *page = [userInfo objectForKey:SKPDFDocumentPageKey];
+    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:SKPDFDocumentAnnotationKey];
     
     [self setNeedsDisplayForAnnotation:annotation];
-    [self annotationsChangedOnPage:page];
     [self resetPDFToolTipRects];
 }
 
@@ -3306,12 +3303,10 @@
 - (void)handleDidMoveAnnotationNotification:(NSNotification *)notification {
     NSDictionary *userInfo = [notification userInfo];
     PDFAnnotation *annotation = [userInfo 
objectForKey:SKPDFDocumentAnnotationKey];
-    PDFPage *page = [userInfo objectForKey:SKPDFDocumentPageKey];
     PDFPage *oldPage = [userInfo objectForKey:SKPDFDocumentOldPageKey];
     
     [self setNeedsDisplayForAnnotation:annotation];
     [self annotationsChangedOnPage:oldPage];
-    [self annotationsChangedOnPage:page];
     if ([annotation isNote])
         [self resetPDFToolTipRects];
     if ([self isEditingAnnotation:annotation])

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