Revision: 16116
http://sourceforge.net/p/skim-app/code/16116
Author: hofman
Date: 2026-03-27 15:59:54 +0000 (Fri, 27 Mar 2026)
Log Message:
-----------
don't attempt setting displaySettings when not present
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-03-26 23:09:53 UTC (rev 16115)
+++ trunk/SKMainWindowController.m 2026-03-27 15:59:54 UTC (rev 16116)
@@ -615,16 +615,18 @@
if (applySidePaneWidths)
[savedNormalSetup
removeObjectsForKeys:@[LEFTSIDEPANEWIDTH_KEY, RIGHTSIDEPANEWIDTH_KEY]];
}
- if ([self interactionMode] == SKPresentationMode) {
- NSMutableDictionary *mutableSetup = [setup mutableCopy];
- [mutableSetup removeObjectsForKeys:@[@"displayMode",
@"displayDirection"]];
- [pdfView setDisplaySettings:mutableSetup];
- [savedNormalSetup removeObjectForKey:MAINWINDOWFRAME_KEY];
- } else if ([self interactionMode] == SKNormalMode ||
[[[NSUserDefaults standardUserDefaults]
dictionaryForKey:SKDefaultFullScreenPDFDisplaySettingsKey] count] == 0) {
- if ([setup objectForKey:PAGEINDEX_KEY])
- [pdfView setDisplaySettings:setup];
- else
- [pdfView setDisplaySettingsAndRewind:setup];
+ if ([setup objectForKey:AUTOSCALES_KEY]) {
+ if ([self interactionMode] == SKPresentationMode) {
+ NSMutableDictionary *mutableSetup = [setup mutableCopy];
+ [mutableSetup removeObjectsForKeys:@[@"displayMode",
@"displayDirection"]];
+ [pdfView setDisplaySettings:mutableSetup];
+ [savedNormalSetup removeObjectForKey:MAINWINDOWFRAME_KEY];
+ } else if ([self interactionMode] == SKNormalMode ||
[[[NSUserDefaults standardUserDefaults]
dictionaryForKey:SKDefaultFullScreenPDFDisplaySettingsKey] count] == 0) {
+ if ([setup objectForKey:PAGEINDEX_KEY])
+ [pdfView setDisplaySettings:setup];
+ else
+ [pdfView setDisplaySettingsAndRewind:setup];
+ }
}
NSArray *cropBoxes = [setup objectForKey:CROPBOXES_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