Revision: 16766
          http://sourceforge.net/p/skim-app/code/16766
Author:   hofman
Date:     2026-11-01 15:51:59 +0000 (Sun, 01 Nov 2026)
Log Message:
-----------
check bookmark data first

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

Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m  2026-11-01 14:51:39 UTC (rev 16765)
+++ trunk/SKBookmark.m  2026-11-01 15:51:59 UTC (rev 16766)
@@ -476,11 +476,11 @@
 - (instancetype)initWithSetup:(NSDictionary *)aSetupDict label:(NSString 
*)aLabel {
     self = [super init];
     if (self) {
-        NSData *data;
-        if ((data = [aSetupDict objectForKey:ALIASDATA_KEY]))
+        NSData *data = [aSetupDict objectForKey:BOOKMARK_KEY];
+        if (data)
+            alias = [[SKAlias alloc] initWithBookmarkData:data];
+        else if ((data = [aSetupDict objectForKey:ALIASDATA_KEY]))
             alias = [[SKAlias alloc] initWithAliasData:data];
-        else if ((data = [aSetupDict objectForKey:BOOKMARK_KEY]))
-            alias = [[SKAlias alloc] initWithBookmarkData:data];
         NSNumber *pageIndexNumber = [aSetupDict objectForKey:PAGEINDEX_KEY];
         pageIndex = pageIndexNumber ? [pageIndexNumber unsignedIntegerValue] : 
NSNotFound;
         label = [aLabel copy];

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