Revision: 14277
http://sourceforge.net/p/skim-app/code/14277
Author: hofman
Date: 2024-05-30 09:40:38 +0000 (Thu, 30 May 2024)
Log Message:
-----------
reorganize code
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-05-30 09:36:44 UTC (rev 14276)
+++ trunk/SKMainWindowController.m 2024-05-30 09:40:38 UTC (rev 14277)
@@ -2853,10 +2853,10 @@
PDFPage *firstPage = [[pdfView document] pageAtIndex:0];
PDFDisplayBox box = [pdfView displayBox];
NSRect bounds = [firstPage boundsForBox:box];
- if ([firstPage rotation] % 180 != 0)
+ if (([firstPage rotation] % 180) == 0)
+ bounds.origin = NSZeroPoint;
+ else
bounds = NSMakeRect(0.0, 0.0, NSHeight(bounds), NSWidth(bounds));
- else
- bounds.origin = NSZeroPoint;
PDFPage *emptyPage = [[SKPDFPage alloc] init];
[emptyPage setBounds:bounds forBox:kPDFDisplayBoxCropBox];
[emptyPage setBounds:bounds forBox:kPDFDisplayBoxMediaBox];
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