Revision: 16495
          http://sourceforge.net/p/skim-app/code/16495
Author:   hofman
Date:     2026-09-17 16:59:52 +0000 (Thu, 17 Sep 2026)
Log Message:
-----------
remove popup annotations when pdfkit adds them after a content change

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-09-17 16:51:33 UTC (rev 16494)
+++ trunk/SKMainWindowController.m      2026-09-17 16:59:52 UTC (rev 16495)
@@ -2851,6 +2851,14 @@
             if ([note isSkimNote] == NO)
                 return;
             
+            if ([keyPath isEqualToString:SKNPDFAnnotationStringKey] && ([note 
isText] || [note isMarkup])) {
+                PDFAnnotation *popup = [note popup];
+                if (popup) {
+                    [[note page] removeAnnotation:popup];
+                    [note setPopup:nil];
+                }
+            }
+            
             if (mwcFlags.autoResizeNoteRows) {
                 if ([keyPath isEqualToString:SKNPDFAnnotationStringKey])
                     [rightSideController.noteOutlineView setRowHeight:0.0 
forItem:note];

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