Revision: 15434
http://sourceforge.net/p/skim-app/code/15434
Author: hofman
Date: 2025-06-11 14:27:36 +0000 (Wed, 11 Jun 2025)
Log Message:
-----------
return unspecified point for destination when document is locked
Modified Paths:
--------------
trunk/PDFView_SKExtensions.h
trunk/PDFView_SKExtensions.m
Modified: trunk/PDFView_SKExtensions.h
===================================================================
--- trunk/PDFView_SKExtensions.h 2025-06-11 09:33:29 UTC (rev 15433)
+++ trunk/PDFView_SKExtensions.h 2025-06-11 14:27:36 UTC (rev 15434)
@@ -67,7 +67,7 @@
- (PDFPage *)pageAndPoint:(NSPoint * _Nullable)point forEvent:(NSEvent *)event
nearest:(BOOL)nearest;
-- (SKDestination)currentDestination:(BOOL)invalidatePointWwhenRotated;
+- (SKDestination)currentDestination:(BOOL)invalidatePointWhenRotated;
- (void)goToCurrentDestination:(SKDestination)destination;
- (void)goToCurrentPage:(PDFPage *)page;
Modified: trunk/PDFView_SKExtensions.m
===================================================================
--- trunk/PDFView_SKExtensions.m 2025-06-11 09:33:29 UTC (rev 15433)
+++ trunk/PDFView_SKExtensions.m 2025-06-11 14:27:36 UTC (rev 15434)
@@ -198,10 +198,10 @@
return page;
}
-- (SKDestination)currentDestination:(BOOL)invalidatePointWwhenRotated {
+- (SKDestination)currentDestination:(BOOL)invalidatePointWhenRotated {
PDFPage *page = [self currentPage];
NSPoint point = SKUnspecifiedPoint;
- if (invalidatePointWwhenRotated == NO || [page rotation] == [page
intrinsicRotation]) {
+ if ([[page document] isLocked] == NO && (invalidatePointWhenRotated == NO
|| [page rotation] == [page intrinsicRotation])) {
// don't use currentDestination, as that always gives the top-left of
the page in non-continuous mode, rather than the visible area
point = SKTopLeftPoint([self bounds]);
point.y -= [[self scrollView] contentInsets].top;
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