Revision: 16457
          http://sourceforge.net/p/skim-app/code/16457
Author:   hofman
Date:     2026-09-12 17:24:51 +0000 (Sat, 12 Sep 2026)
Log Message:
-----------
remove scrollPoint from properties when editing pageIndex of bookmark

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

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2026-09-12 17:05:02 UTC (rev 16456)
+++ trunk/SKBookmark.m  2026-09-12 17:24:51 UTC (rev 16457)
@@ -506,6 +506,8 @@
     NSString *dataKey = [alias isBookmark] ? BOOKMARK_KEY : ALIASDATA_KEY;
     [properties removeObjectForKey:[dataKey isEqualToString:ALIASDATA_KEY] ? 
BOOKMARK_KEY : ALIASDATA_KEY];
     [properties addEntriesFromDictionary:[NSDictionary 
dictionaryWithObjectsAndKeys:BOOKMARK_STRING, TYPE_KEY, data, dataKey, 
[NSNumber numberWithUnsignedInteger:pageIndex], PAGEINDEX_KEY, label, 
LABEL_KEY, nil]];
+    if ([[setup objectForKey:PAGEINDEX_KEY] unsignedIntegerValue] != pageIndex 
&& pageIndex != NSNotFound)
+        [properties removeObjectForKey:@"scrollPoint"];
     return properties;
 }
 

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