Revision: 6543
http://skim-app.svn.sourceforge.net/skim-app/?rev=6543&view=rev
Author: hofman
Date: 2010-05-18 17:08:07 +0000 (Tue, 18 May 2010)
Log Message:
-----------
set pageIndex of bookmark to NSNotFound when it's not in the dictionary
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2010-05-18 17:00:17 UTC (rev 6542)
+++ trunk/SKBookmark.m 2010-05-18 17:08:07 UTC (rev 6543)
@@ -266,7 +266,9 @@
} else if ([dictionary objectForKey:@"windowFrame"]) {
return [[SKFileBookmark alloc] initWithSetup:dictionary
label:[dictionary objectForKey:LABEL_KEY]];
} else {
- return [[SKFileBookmark alloc] initWithAlias:[BDAlias
aliasWithData:[dictionary objectForKey:ALIASDATA_KEY]] pageIndex:[[dictionary
objectForKey:PAGEINDEX_KEY] unsignedIntegerValue] label:[dictionary
objectForKey:LABEL_KEY]];
+ BDAlias *alias = [BDAlias aliasWithData:[dictionary
objectForKey:ALIASDATA_KEY]];
+ NSNumber *pageIndex = [dictionary objectForKey:PAGEINDEX_KEY];
+ return [[SKFileBookmark alloc] initWithAlias:alias
pageIndex:(pageIndex ? [pageIndex unsignedIntegerValue] : NSNotFound)
label:[dictionary objectForKey:LABEL_KEY]];
}
}
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