Revision: 6941
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6941&view=rev
Author:   hofman
Date:     2010-12-06 21:42:13 +0000 (Mon, 06 Dec 2010)

Log Message:
-----------
always return the real current PDF settings form currentPDFSettings, so we also 
save the correct settings for default full screen settings

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2010-12-06 19:03:57 UTC (rev 6940)
+++ trunk/SKMainWindowController.m      2010-12-06 21:42:13 UTC (rev 6941)
@@ -580,17 +580,12 @@
 - (NSDictionary *)currentPDFSettings {
     NSMutableDictionary *setup = [NSMutableDictionary dictionary];
     
-    if ([self interactionMode] == SKNormalMode) {
-        [setup setObject:[NSNumber numberWithBool:[pdfView 
displaysPageBreaks]] forKey:DISPLAYSPAGEBREAKS_KEY];
-        [setup setObject:[NSNumber numberWithBool:[pdfView displaysAsBook]] 
forKey:DISPLAYSASBOOK_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]];
-    }
+    [setup setObject:[NSNumber numberWithBool:[pdfView displaysPageBreaks]] 
forKey:DISPLAYSPAGEBREAKS_KEY];
+    [setup setObject:[NSNumber numberWithBool:[pdfView displaysAsBook]] 
forKey:DISPLAYSASBOOK_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];
     
     return setup;
 }


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

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to