Revision: 13645
          http://sourceforge.net/p/skim-app/code/13645
Author:   hofman
Date:     2023-09-08 15:33:10 +0000 (Fri, 08 Sep 2023)
Log Message:
-----------
make sure we get the pdfview's undomanager from the document, needed for the 
tansition controller

Modified Paths:
--------------
    trunk/SKPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-09-07 14:59:18 UTC (rev 13644)
+++ trunk/SKPDFView.m   2023-09-08 15:33:10 UTC (rev 13645)
@@ -1048,6 +1048,15 @@
     }
 }
 
+- (NSUndoManager *)undoManager {
+    NSUndoManager *undoManager = nil;
+    if ([[self delegate] respondsToSelector:@selector(document)])
+        undoManager = [[(NSWindowController *)[self delegate] document] 
undoManager];
+    if (undoManager == nil)
+        undoManager = [super undoManager];
+    return undoManager;
+}
+
 #pragma mark Reading bar
 
 - (BOOL)hasReadingBar {

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

Reply via email to