Revision: 7690
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7690&view=rev
Author:   hofman
Date:     2012-03-29 16:57:19 +0000 (Thu, 29 Mar 2012)
Log Message:
-----------
do show anchored note tool tips in all tool modes

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2012-03-24 18:38:56 UTC (rev 7689)
+++ trunk/SKPDFView.m   2012-03-29 16:57:19 UTC (rev 7690)
@@ -311,17 +311,17 @@
 - (void)resetPDFToolTipRects {
     [self removePDFToolTipRects];
     
-    if ([self document] && [self window] && interactionMode != 
SKPresentationMode && 
-        (toolMode == SKTextToolMode || toolMode == SKMoveToolMode || toolMode 
== SKNoteToolMode)) {
+    if ([self document] && [self window] && interactionMode != 
SKPresentationMode) {
         NSRange range = [self visiblePageIndexRange];
         NSUInteger i, iMax = NSMaxRange(range);
         NSRect visibleRect = [self visibleContentRect];
         NSView *docView = [self documentView];
+        BOOL hasLinkToolTips = (toolMode == SKTextToolMode || toolMode == 
SKMoveToolMode || toolMode == SKNoteToolMode);
         
         for (i = range.location; i < iMax; i++) {
             PDFPage *page = [[self document] pageAtIndex:i];
             for (PDFAnnotation *annotation in [page annotations]) {
-                if ([[annotation type] isEqualToString:SKNNoteString] || 
[annotation isLink]) {
+                if ([[annotation type] isEqualToString:SKNNoteString] || 
(hasLinkToolTips && [annotation isLink])) {
                     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.


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to