Revision: 16117
http://sourceforge.net/p/skim-app/code/16117
Author: hofman
Date: 2026-03-27 16:39:35 +0000 (Fri, 27 Mar 2026)
Log Message:
-----------
make sure to maintain single page display when setting display settings in
presentation
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-03-27 15:59:54 UTC (rev 16116)
+++ trunk/SKMainWindowController.m 2026-03-27 16:39:35 UTC (rev 16117)
@@ -617,9 +617,14 @@
}
if ([setup objectForKey:AUTOSCALES_KEY]) {
if ([self interactionMode] == SKPresentationMode) {
- NSMutableDictionary *mutableSetup = [setup mutableCopy];
- [mutableSetup removeObjectsForKeys:@[@"displayMode",
@"displayDirection"]];
- [pdfView setDisplaySettings:mutableSetup];
+ if ([[setup objectForKey:@"displayMode"] integerValue] !=
kPDFDisplaySinglePage) {
+ NSMutableDictionary *mutableSetup = [setup
mutableCopy];
+ [mutableSetup setObject:@0 forKey:@"displayMode"];
+ [mutableSetup setObject:@0 forKey:@"displayDirection"];
+ [pdfView setDisplaySettings:mutableSetup];
+ } else {
+ [pdfView setDisplaySettings:setup];
+ }
[savedNormalSetup removeObjectForKey:MAINWINDOWFRAME_KEY];
} else if ([self interactionMode] == SKNormalMode ||
[[[NSUserDefaults standardUserDefaults]
dictionaryForKey:SKDefaultFullScreenPDFDisplaySettingsKey] count] == 0) {
if ([setup objectForKey:PAGEINDEX_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