Revision: 16658
http://sourceforge.net/p/skim-app/code/16658
Author: hofman
Date: 2026-10-13 21:28:52 +0000 (Tue, 13 Oct 2026)
Log Message:
-----------
don't reset selection rect after crop odd/even
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2026-10-13 21:22:51 UTC (rev
16657)
+++ trunk/SKMainWindowController_Actions.m 2026-10-13 21:28:52 UTC (rev
16658)
@@ -679,7 +679,6 @@
NSRect selRect = NSIntegralRect([pdfView selectToolRect]);
NSRect rect[2] = {NSZeroRect, NSZeroRect};
NSPointerArray *rectArray = [[NSPointerArray alloc] initForRectPointers];
- BOOL emptySelection = NSIsEmptyRect(selRect);
if ([[pdfView document] pageCount] < 2) {
NSBeep();
@@ -686,7 +685,7 @@
return;
}
- if (emptySelection) {
+ if (NSIsEmptyRect(selRect)) {
NSInteger i, j, count = [[pdfView document] pageCount], k = [[pdfView
currentPage] pageIndex] % 2;
[self beginProgressSheetWithMessage:[NSLocalizedString(@"Cropping
Pages", @"Message for progress sheet") stringByAppendingEllipsis]
maxValue:MIN(18, count)];
@@ -716,9 +715,6 @@
}
[self cropPagesToRects:rectArray];
-
- if (emptySelection == NO)
- [pdfView setSelectToolRect:NSZeroRect];
}
- (IBAction)autoCropAll:(id)sender {
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