Revision: 3399
http://skim-app.svn.sourceforge.net/skim-app/?rev=3399&view=rev
Author: hofman
Date: 2008-02-12 15:00:18 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
Load PDF document after changing PDFView settings to avoid a Leopard crasher.
May be the same crasher we got in the main window.
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2008-02-12 20:41:52 UTC (rev 3398)
+++ trunk/SKSnapshotWindowController.m 2008-02-12 23:00:18 UTC (rev 3399)
@@ -197,11 +197,11 @@
- (void)setPdfDocument:(PDFDocument *)pdfDocument scaleFactor:(float)factor
goToPageNumber:(int)pageNum rect:(NSRect)rect autoFits:(BOOL)autoFits {
[self window];
- [pdfView setDocument:pdfDocument];
[pdfView setScaleFactor:factor];
[pdfView setAutoScales:NO];
[pdfView setDisplaysPageBreaks:NO];
[pdfView setDisplayBox:kPDFDisplayBoxCropBox];
+ [pdfView setDocument:pdfDocument];
PDFPage *page = [pdfDocument pageAtIndex:pageNum];
NSRect contentRect = [pdfView convertRect:rect fromPage:page];
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit