Revision: 15788
http://sourceforge.net/p/skim-app/code/15788
Author: hofman
Date: 2025-11-10 17:45:08 +0000 (Mon, 10 Nov 2025)
Log Message:
-----------
revert previous commit, changing mendia box can change the crop box when the
page does not have a separate crop box
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2025-11-10 17:43:59 UTC (rev 15787)
+++ trunk/SKMainWindowController.m 2025-11-10 17:45:08 UTC (rev 15788)
@@ -2211,11 +2211,9 @@
- (void)handlePageBoundsDidChangeNotification:(NSNotification *)notification {
NSDictionary *info = [notification userInfo];
PDFPage *page = [info objectForKey:SKPDFPagePageKey];
- NSString *action = [info objectForKey:SKPDFPageActionKey];
- BOOL isCrop = [action isEqualToString:SKPDFPageActionCrop];
- BOOL isResize = [action isEqualToString:SKPDFPageActionResize];
- BOOL displayChanged = isCrop ? [pdfView displayBox] ==
kPDFDisplayBoxCropBox : isResize ? [pdfView displayBox] ==
kPDFDisplayBoxMediaBox : YES;
-
+ BOOL isCrop = [[info objectForKey:SKPDFPageActionKey]
isEqualToString:SKPDFPageActionCrop];
+ BOOL displayChanged = isCrop == NO || [pdfView displayBox] ==
kPDFDisplayBoxCropBox;
+
if (displayChanged)
[pdfView layoutDocumentView];
if (page) {
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