Revision: 15399
          http://sourceforge.net/p/skim-app/code/15399
Author:   hofman
Date:     2025-06-07 21:06:59 +0000 (Sat, 07 Jun 2025)
Log Message:
-----------
get widget properties when interpreting note dictionaries

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2025-06-07 20:50:06 UTC (rev 15398)
+++ trunk/SKMainWindowController.m      2025-06-07 21:06:59 UTC (rev 15399)
@@ -1084,7 +1084,7 @@
 
 - (void)setPdfDocument:(PDFDocument *)pdfDocument 
addAnnotationsFromDictionaries:(NSArray *)noteDicts {
     PDFDocument *pdfDoc = pdfDocument;
-    NSArray *widgetProperties = [noteDicts 
filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"type = 
\"Widget\""]];
+    NSMutableArray *widgetProperties = nil;
     PDFDocument *oldPdfDoc = [pdfView document];
     SKDestination dest = {NSNotFound, NSZeroPoint}, secondaryDest = 
{NSNotFound, NSZeroPoint};
     BOOL rotated = NO;
@@ -1158,7 +1158,8 @@
     }
     
     if ([noteDicts count]) {
-        NSArray *notesAndPagesToAdd = [self 
annotationsAndPagesFromDictionaries:noteDicts forDocument:pdfDoc autoUpdate:NO 
widgetDictionaries:nil];
+        widgetProperties = [NSMutableArray array];
+        NSArray *notesAndPagesToAdd = [self 
annotationsAndPagesFromDictionaries:noteDicts forDocument:pdfDoc autoUpdate:NO 
widgetDictionaries:widgetProperties];
         NSMutableArray *addedNotes = [NSMutableArray array];
         BOOL shouldDisplay = [pdfView hideNotes] == NO;
         

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