Revision: 3990
http://skim-app.svn.sourceforge.net/skim-app/?rev=3990&view=rev
Author: hofman
Date: 2008-06-08 05:22:57 -0700 (Sun, 08 Jun 2008)
Log Message:
-----------
Add hidden pref to use same zoom factor in split PDF as the main one
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-06-08 12:07:24 UTC (rev 3989)
+++ trunk/SKMainWindowController.m 2008-06-08 12:22:57 UTC (rev 3990)
@@ -138,6 +138,7 @@
NSString *SKRightSidePaneWidthKey = @"SKRightSidePaneWidth";
static NSString *SKUsesDrawersKey = @"SKUsesDrawers";
+static NSString *SKSplitPDFCopiesZoomKey = @"SKSplitPDFCopiesZoom";
@interface NSResponder (SKExtensions)
- (BOOL)isDescendantOf:(NSView *)aView;
@@ -2230,7 +2231,10 @@
// Because of a PDFView bug, display properties can not be changed
before it is placed in a window
[secondaryPdfView setBackgroundColor:[pdfView backgroundColor]];
[secondaryPdfView setDisplaysPageBreaks:NO];
- [secondaryPdfView setAutoScales:YES];
+ if ([pdfView autoScales] || [[NSUserDefaults standardUserDefaults]
boolForKey:SKSplitPDFCopiesZoomKey] == NO)
+ [secondaryPdfView setAutoScales:YES];
+ else
+ [secondaryPdfView setScaleFactor:[pdfView scaleFactor]];
[secondaryPdfView setDocument:[pdfView document]];
} else {
[secondaryPdfEdgeView setFrame:frame2];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit