Revision: 2818
http://skim-app.svn.sourceforge.net/skim-app/?rev=2818&view=rev
Author: hofman
Date: 2007-09-03 15:17:20 -0700 (Mon, 03 Sep 2007)
Log Message:
-----------
Use selection if present when command-clicking for snapshot.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2007-09-03 19:33:17 UTC (rev 2817)
+++ trunk/SKPDFView.m 2007-09-03 22:17:20 UTC (rev 2818)
@@ -3379,6 +3379,12 @@
autoFits = YES;
+ } else if (toolMode == SKSelectToolMode && NSIsEmptyRect(selectionRect) ==
NO) {
+
+ rect = NSIntersectionRect(selectionRect, [page
boundsForBox:kPDFDisplayBoxCropBox]);
+ rect = [self convertRect:rect fromPage:page];
+ autoFits = YES;
+
} else {
BOOL isLink = NO;
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