Revision: 16458
          http://sourceforge.net/p/skim-app/code/16458
Author:   hofman
Date:     2026-09-12 17:27:20 +0000 (Sat, 12 Sep 2026)
Log Message:
-----------
first check whether key is present, not present for note documents

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

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2026-09-12 17:24:51 UTC (rev 16457)
+++ trunk/SKBookmark.m  2026-09-12 17:27:20 UTC (rev 16458)
@@ -506,7 +506,7 @@
     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)
+    if ([setup objectForKey:PAGEINDEX_KEY] && [[setup 
objectForKey:PAGEINDEX_KEY] unsignedIntegerValue] != pageIndex)
         [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