Revision: 16130
http://sourceforge.net/p/skim-app/code/16130
Author: hofman
Date: 2026-03-29 16:58:11 +0000 (Sun, 29 Mar 2026)
Log Message:
-----------
add comment
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2026-03-29 16:21:05 UTC (rev 16129)
+++ trunk/SKPDFView.m 2026-03-29 16:58:11 UTC (rev 16130)
@@ -850,6 +850,9 @@
}
- (NSUndoManager *)undoManager {
+ // make sure we get the correct undoManager also when we are not in the
document's window,
+ // e.g. in presentation mode
+ // this can happen when undoing form edits
NSUndoManager *undoManager = nil;
if ([[self delegate] respondsToSelector:@selector(undoManagerForPDFView:)])
undoManager = [[self delegate] undoManagerForPDFView:self];
@@ -2651,7 +2654,7 @@
if (annotation == nil || [self isEditingAnnotation:annotation])
return;
- if ([self canSelectNote] && [self window]) {
+ if ([self canSelectNote] && [self window] && [self
isHiddenOrHasHiddenAncestor] == NO) {
if (currentAnnotation != annotation)
[self setCurrentAnnotation:annotation];
[self editCurrentAnnotation:nil];
@@ -2691,7 +2694,7 @@
if ([[self delegate]
respondsToSelector:@selector(PDFView:editAnnotation:)])
[[self delegate] PDFView:self
editAnnotation:currentAnnotation];
- } else if ([self window]) {
+ } else if ([self window] && [self isHiddenOrHasHiddenAncestor] == NO) {
[self scrollAnnotationToVisible:currentAnnotation];
[self editTextNoteWithEvent:nil];
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