Revision: 2607
http://skim-app.svn.sourceforge.net/skim-app/?rev=2607&view=rev
Author: hofman
Date: 2007-08-06 01:39:54 -0700 (Mon, 06 Aug 2007)
Log Message:
-----------
Change a copy of the printInfo for landscape documents, as the printInfo can be
the shared copy.
Modified Paths:
--------------
trunk/SKDocument.m
Modified: trunk/SKDocument.m
===================================================================
--- trunk/SKDocument.m 2007-08-05 20:29:27 UTC (rev 2606)
+++ trunk/SKDocument.m 2007-08-06 08:39:54 UTC (rev 2607)
@@ -114,7 +114,12 @@
NSSize pageSize = [page boundsForBox:kPDFDisplayBoxMediaBox].size;
BOOL isRotated = [page rotation] % 180 == 90;
BOOL isWide = (pageSize.width > pageSize.height) != (paperSize.width >
paperSize.height);
- [printInfo setOrientation:isRotated == isWide ? NSPortraitOrientation
: NSLandscapeOrientation];
+ if (isRotated != isWide) {
+ printInfo = [printInfo copy];
+ [printInfo setOrientation:NSLandscapeOrientation];
+ [self setPrintInfo:printInfo];
+ [printInfo release];
+ }
}
[mainController setPdfDocument:pdfDocument];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit