Revision: 5462
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5462&view=rev
Author:   hofman
Date:     2009-07-04 14:35:55 +0000 (Sat, 04 Jul 2009)

Log Message:
-----------
set rotation for placeholder page equal to that of the first page

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2009-07-03 16:54:27 UTC (rev 5461)
+++ trunk/SKMainWindowController.m      2009-07-04 14:35:55 UTC (rev 5462)
@@ -2542,9 +2542,11 @@
     [self willChangeValueForKey:THUMBNAILS_KEY];
     [thumbnails removeAllObjects];
     if (count) {
+        PDFPage *firstPage = [[pdfView document] pageAtIndex:0];
         PDFPage *emptyPage = [[[PDFPage alloc] init] autorelease];
-        [emptyPage setBounds:[[[pdfView document] pageAtIndex:0] 
boundsForBox:kPDFDisplayBoxCropBox] forBox:kPDFDisplayBoxCropBox];
-        [emptyPage setBounds:[[[pdfView document] pageAtIndex:0] 
boundsForBox:kPDFDisplayBoxMediaBox] forBox:kPDFDisplayBoxMediaBox];
+        [emptyPage setBounds:[firstPage boundsForBox:kPDFDisplayBoxCropBox] 
forBox:kPDFDisplayBoxCropBox];
+        [emptyPage setBounds:[firstPage boundsForBox:kPDFDisplayBoxMediaBox] 
forBox:kPDFDisplayBoxMediaBox];
+        [emptyPage setRotation:[firstPage rotation]];
         NSImage *image = [emptyPage thumbnailWithSize:thumbnailCacheSize 
forBox:[pdfView displayBox]];
         [image lockFocus];
         NSRect imgRect = NSZeroRect;


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

Reply via email to