Revision: 16767
          http://sourceforge.net/p/skim-app/code/16767
Author:   hofman
Date:     2026-11-01 15:54:40 +0000 (Sun, 01 Nov 2026)
Log Message:
-----------
temporary mutable dictionary

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

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2026-11-01 15:51:59 UTC (rev 16766)
+++ trunk/SKBookmark.m  2026-11-01 15:54:40 UTC (rev 16767)
@@ -485,10 +485,11 @@
         pageIndex = pageIndexNumber ? [pageIndexNumber unsignedIntegerValue] : 
NSNotFound;
         label = [aLabel copy];
         if ([aSetupDict objectForKey:SKDocumentSetupWindowFrameKey]) {
-            setup = [aSetupDict mutableCopy];
-            [(NSMutableDictionary *)setup removeObjectsForKeys:@[TYPE_KEY, 
ALIASDATA_KEY, BOOKMARK_KEY, LABEL_KEY]];
+            NSMutableDictionary *mutSetupDict = [aSetupDict mutableCopy];
+            [mutSetupDict removeObjectsForKeys:@[TYPE_KEY, ALIASDATA_KEY, 
BOOKMARK_KEY, LABEL_KEY]];
             if (pageIndexNumber && pageIndex == NSNotFound)
-                [(NSMutableDictionary *)setup 
removeObjectForKey:PAGEINDEX_KEY];
+                [mutSetupDict removeObjectForKey:PAGEINDEX_KEY];
+            setup = [mutSetupDict copy];
         } else if ([aSetupDict objectForKey:SNAPSHOTS_KEY]) {
             setup = @{SNAPSHOTS_KEY:[aSetupDict objectForKey:SNAPSHOTS_KEY]};
         } else {

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