Revision: 16462
http://sourceforge.net/p/skim-app/code/16462
Author: hofman
Date: 2026-09-12 21:24:56 +0000 (Sat, 12 Sep 2026)
Log Message:
-----------
only have pageIndex when not NSNotFound
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2026-09-12 21:17:04 UTC (rev 16461)
+++ trunk/SKBookmark.m 2026-09-12 21:24:56 UTC (rev 16462)
@@ -509,10 +509,13 @@
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, label,
LABEL_KEY, nil]];
- if (pageIndex != NSNotFound)
+ if (pageIndex != NSNotFound) {
[properties setObject:[NSNumber numberWithUnsignedInteger:pageIndex]
forKey:PAGEINDEX_KEY];
- if ([setup objectForKey:PAGEINDEX_KEY] && [[setup
objectForKey:PAGEINDEX_KEY] unsignedIntegerValue] != pageIndex)
- [properties removeObjectForKey:SCROLLPOINT_KEY];
+ if ([setup objectForKey:PAGEINDEX_KEY] && [[setup
objectForKey:PAGEINDEX_KEY] unsignedIntegerValue] != pageIndex)
+ [properties removeObjectForKey:SCROLLPOINT_KEY];
+ } else {
+ [properties removeObjectForKey:PAGEINDEX_KEY];
+ }
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