Revision: 5708
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5708&view=rev
Author:   hofman
Date:     2009-09-08 09:25:08 +0000 (Tue, 08 Sep 2009)

Log Message:
-----------
two-up as book with to pages displays as a single column

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

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2009-09-07 23:36:29 UTC (rev 
5707)
+++ trunk/SKMainWindowController_Actions.m      2009-09-08 09:25:08 UTC (rev 
5708)
@@ -493,7 +493,7 @@
     NSUInteger pageCount = [[pdfView document] pageCount];
     if (displayMode == kPDFDisplaySinglePage || displayMode == 
kPDFDisplayTwoUp) {
         // zoom to width
-        NSUInteger numCols = (pageCount > 1 && displayMode == 
kPDFDisplayTwoUp) ? 2 : 1;
+        NSUInteger numCols = (displayMode == kPDFDisplayTwoUp && pageCount > 1 
&& ([pdfView displaysAsBook] == NO || pageCount > 2)) ? 2 : 1;
         if (NSWidth(frame) * ( margin + NSHeight(pageRect) ) > NSHeight(frame) 
* numCols * ( margin + NSWidth(pageRect) ) )
             scrollerWidth = [NSScroller scrollerWidth];
         scaleFactor = ( NSWidth(frame) - scrollerWidth ) / ( margin + 
NSWidth(pageRect) );


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to