Revision: 14889
http://sourceforge.net/p/skim-app/code/14889
Author: hofman
Date: 2025-01-27 10:46:30 +0000 (Mon, 27 Jan 2025)
Log Message:
-----------
reset page history for split pdfview when creating
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2025-01-27 10:42:05 UTC (rev
14888)
+++ trunk/SKMainWindowController_Actions.m 2025-01-27 10:46:30 UTC (rev
14889)
@@ -1097,8 +1097,9 @@
NSPoint point = frame.origin;
PDFPage *page = nil;
BOOL fixedAtBottom = [[[pdfView scrollView] contentView] isFlipped] ==
NO;
+ BOOL createNew = secondaryPdfView == nil;
- if (secondaryPdfView == nil) {
+ if (createNew) {
secondaryPdfView = [[SKSecondaryPDFView alloc]
initWithFrame:NSMakeRect(0.0, 0.0, 200.0, 20.0)];
[secondaryPdfView setAutoresizingMask:NSViewWidthSizable |
NSViewHeightSizable];
[secondaryPdfView setHidden:YES];
@@ -1128,6 +1129,8 @@
point.y -= ([[secondaryPdfView documentView] isFlipped] ==
fixedAtBottom ? 1.0 : -1.0) * NSHeight([[secondaryPdfView documentView]
visibleRect]);
[[secondaryPdfView documentView] scrollPoint:point];
[secondaryPdfView layoutDocumentView];
+ if (createNew)
+ [secondaryPdfView resetHistory];
}
}
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