From: <ho...@us...> - 2010-12-29 00:52:09
|
Revision: 7023 http://skim-app.svn.sourceforge.net/skim-app/?rev=7023&view=rev Author: hofman Date: 2010-12-29 00:52:02 +0000 (Wed, 29 Dec 2010) Log Message: ----------- fix check when unlocking Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2010-12-28 17:40:46 UTC (rev 7022) +++ trunk/SKMainWindowController.m 2010-12-29 00:52:02 UTC (rev 7023) @@ -1950,9 +1950,7 @@ - (void)documentDidUnlockDelayed { NSUInteger pageIndex = [[savedNormalSetup objectForKey:PAGEINDEX_KEY] unsignedIntegerValue]; NSArray *snapshotSetups = [savedNormalSetup objectForKey:SNAPSHOTS_KEY]; - if ([savedNormalSetup objectForKey:AUTOSCALES_KEY]) { - [self applyPDFSettings:[savedNormalSetup count] ? savedNormalSetup : [[NSUserDefaults standardUserDefaults] dictionaryForKey:SKDefaultPDFDisplaySettingsKey]]; - } + [self applyPDFSettings:[savedNormalSetup objectForKey:AUTOSCALES_KEY] ? savedNormalSetup : [[NSUserDefaults standardUserDefaults] dictionaryForKey:SKDefaultPDFDisplaySettingsKey]]; if (pageIndex != NSNotFound) { [lastViewedPages removeAllObjects]; [pdfView goToPage:[[pdfView document] pageAtIndex:pageIndex]]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |