Revision: 14662
          http://sourceforge.net/p/skim-app/code/14662
Author:   hofman
Date:     2024-11-09 15:26:02 +0000 (Sat, 09 Nov 2024)
Log Message:
-----------
remove properties saved elsewhere from setup dictionary in bookmark

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

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2024-11-09 15:13:24 UTC (rev 14661)
+++ trunk/SKBookmark.m  2024-11-09 15:26:02 UTC (rev 14662)
@@ -459,8 +459,12 @@
         if (alias) {
             NSNumber *pageIndexNumber = [aSetupDict 
objectForKey:PAGEINDEX_KEY];
             pageIndex = pageIndexNumber ? [pageIndexNumber 
unsignedIntegerValue] : NSNotFound;
-            label = aLabel;
-            setup = [aSetupDict objectForKey:SKDocumentSetupWindowFrameKey] ? 
[aSetupDict copy] : nil;
+            label = [aLabel copy];
+            if ([aSetupDict objectForKey:SKDocumentSetupWindowFrameKey]) {
+                setup = [aSetupDict mutableCopy];
+                [(NSMutableDictionary *)setup 
removeObjectsForKeys:@[ALIASDATA_KEY, BOOKMARK_KEY, PAGEINDEX_KEY, LABEL_KEY]];
+            } else
+                setup = nil;
         } else {
             self = nil;
         }

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