Revision: 3922
http://skim-app.svn.sourceforge.net/skim-app/?rev=3922&view=rev
Author: hofman
Date: 2008-05-26 13:20:50 -0700 (Mon, 26 May 2008)
Log Message:
-----------
Crop page for current selection rather than the current page in crop: action.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-05-26 18:12:29 UTC (rev 3921)
+++ trunk/SKMainWindowController.m 2008-05-26 20:20:50 UTC (rev 3922)
@@ -1787,9 +1787,12 @@
- (IBAction)crop:(id)sender {
NSRect rect = NSIntegralRect([pdfView currentSelectionRect]);
+ PDFPage *page = [pdfView currentSelectionPage];
if (NSIsEmptyRect(rect))
rect = [[pdfView currentSelectionPage] foregroundBox];
- [self cropPageAtIndex:[[pdfView currentPage] pageIndex] toRect:rect];
+ if (page == nil)
+ page = [pdfView currentPage];
+ [self cropPageAtIndex:[page pageIndex] toRect:rect];
}
- (void)cropPagesToRects:(NSArray *)rects {
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