Revision: 14837
          http://sourceforge.net/p/skim-app/code/14837
Author:   hofman
Date:     2024-12-16 09:49:29 +0000 (Mon, 16 Dec 2024)
Log Message:
-----------
prefer performing pdf action for link

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-12-15 17:39:09 UTC (rev 14836)
+++ trunk/SKPDFView.m   2024-12-16 09:49:29 UTC (rev 14837)
@@ -2649,9 +2649,12 @@
     if ([currentAnnotation isLink]) {
         
         [[SKImageToolTipWindow sharedToolTipWindow] orderOut:self];
-        PDFDestination *dest = [currentAnnotation destination];
+        PDFAction *action = [currentAnnotation action];
+        PDFDestination *dest;
         NSURL *url;
-        if (dest)
+        if (action)
+            [self performAction:action];
+        else if ((dest = [currentAnnotation destination]))
             [self goToDestination:dest];
         else if ((url = [currentAnnotation URL]))
             [[NSWorkspace sharedWorkspace] openURL:url];

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