Revision: 6875
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6875&view=rev
Author:   hofman
Date:     2010-10-17 09:36:31 +0000 (Sun, 17 Oct 2010)

Log Message:
-----------
always return normal pdf view settings, also in full screen mode

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2010-10-15 22:57:28 UTC (rev 6874)
+++ trunk/SKMainWindowController.m      2010-10-17 09:36:31 UTC (rev 6875)
@@ -580,16 +580,16 @@
 - (NSDictionary *)currentPDFSettings {
     NSMutableDictionary *setup = [NSMutableDictionary dictionary];
     
-    if ([self interactionMode] == SKPresentationMode) {
-        [setup setDictionary:savedNormalSetup];
-        [setup removeObjectsForKeys:[NSArray 
arrayWithObjects:HASHORIZONTALSCROLLER_KEY, HASVERTICALSCROLLER_KEY, 
AUTOHIDESSCROLLERS_KEY, nil]];
-    } else {
+    if ([self interactionMode] == SKNormalMode) {
         [setup setObject:[NSNumber numberWithBool:[pdfView 
displaysPageBreaks]] forKey:DISPLAYPAGEBREAKS_KEY];
         [setup setObject:[NSNumber numberWithBool:[pdfView displaysAsBook]] 
forKey:DISPLAYASBOOK_KEY];
         [setup setObject:[NSNumber numberWithInteger:[pdfView displayBox]] 
forKey:DISPLAYBOX_KEY];
         [setup setObject:[NSNumber numberWithDouble:[pdfView scaleFactor]] 
forKey:SCALEFACTOR_KEY];
         [setup setObject:[NSNumber numberWithBool:[pdfView autoScales]] 
forKey:AUTOSCALES_KEY];
         [setup setObject:[NSNumber numberWithInteger:[pdfView displayMode]] 
forKey:DISPLAYMODE_KEY];
+    } else {
+        [setup setDictionary:savedNormalSetup];
+        [setup removeObjectsForKeys:[NSArray 
arrayWithObjects:HASHORIZONTALSCROLLER_KEY, HASVERTICALSCROLLER_KEY, 
AUTOHIDESSCROLLERS_KEY, nil]];
     }
     
     return setup;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to