Revision: 9512
          http://sourceforge.net/p/skim-app/code/9512
Author:   hofman
Date:     2017-11-30 18:57:51 +0000 (Thu, 30 Nov 2017)
Log Message:
-----------
Only show image tooltip for local links

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

Modified: trunk/PDFAnnotationLink_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationLink_SKExtensions.m      2017-11-28 22:03:28 UTC (rev 
9511)
+++ trunk/PDFAnnotationLink_SKExtensions.m      2017-11-30 18:57:51 UTC (rev 
9512)
@@ -48,7 +48,7 @@
 static id (*original_toolTip)(id, SEL) = NULL;
 
 - (NSString *)replacement_toolTip {
-    return ([self URL] || [self destination] || original_toolTip == NULL) ? 
@"" : original_toolTip(self, _cmd);
+    return ([self destination] || original_toolTip == NULL) ? @"" : 
original_toolTip(self, _cmd);
 }
 
 + (void)load {

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2017-11-28 22:03:28 UTC (rev 9511)
+++ trunk/SKPDFView.m   2017-11-30 18:57:51 UTC (rev 9512)
@@ -362,7 +362,7 @@
         
         for (PDFPage *page in [self visiblePages]) {
             for (PDFAnnotation *annotation in [page annotations]) {
-                if ([annotation isNote] || (hasLinkToolTips && [annotation 
isLink])) {
+                if ([annotation isNote] || (hasLinkToolTips && [annotation 
linkDestination])) {
                     NSRect rect = NSIntersectionRect([self 
convertRect:[annotation bounds] fromPage:page], visibleRect);
                     if (NSIsEmptyRect(rect) == NO) {
                         rect = [self convertRect:rect toView:docView];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to