Revision: 16657
http://sourceforge.net/p/skim-app/code/16657
Author: hofman
Date: 2026-10-13 21:22:51 +0000 (Tue, 13 Oct 2026)
Log Message:
-----------
change page index range for crop of even/odd pages
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2026-10-13 16:51:31 UTC (rev
16656)
+++ trunk/SKMainWindowController_Actions.m 2026-10-13 21:22:51 UTC (rev
16657)
@@ -692,12 +692,12 @@
[self beginProgressSheetWithMessage:[NSLocalizedString(@"Cropping
Pages", @"Message for progress sheet") stringByAppendingEllipsis]
maxValue:MIN(18, count)];
if (count < 19) {
- for (i = k; i < count; i += 2) {
+ for (i = 2 - k; i < count; i += 2) {
rect[k] = NSUnionRect(rect[k], [[[pdfView document]
pageAtIndex:i] autoCropBox]);
[self incrementProgressSheet];
}
} else {
- NSInteger start[3] = {2 - k, 2 * ((count - 5) / 4) + k, 2 *
((count - k) / 2) - 6 + k};
+ NSInteger start[3] = {2 - k, 2 * ((count - 3 - 2 * k) / 4), 2 *
((count - 3 + k) / 2)};
for (j = 0; j < 3; j++) {
for (i = start[j]; i < start[j] + 6; i += 2) {
rect[k] = NSUnionRect(rect[k], [[[pdfView document]
pageAtIndex:i] autoCropBox]);
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