Revision: 3423
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3423&view=rev
Author:   hofman
Date:     2008-02-21 12:39:13 -0800 (Thu, 21 Feb 2008)

Log Message:
-----------
CFArrayGetFirstIndexOfValue return -1 rather than NSNotFound when object not 
found.

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-02-21 17:56:31 UTC (rev 3422)
+++ trunk/SKPDFView.m   2008-02-21 20:39:13 UTC (rev 3423)
@@ -1375,7 +1375,7 @@
     [super mouseEntered:theEvent];
     if (trackingNumber == trackingRect) {
         [[self window] setAcceptsMouseMovedEvents:YES];
-    } else if (NSNotFound != CFArrayGetFirstIndexOfValue(hoverRects, 
CFRangeMake(0, CFArrayGetCount(hoverRects)), (void *)trackingNumber)) {
+    } else if (-1 != CFArrayGetFirstIndexOfValue(hoverRects, CFRangeMake(0, 
CFArrayGetCount(hoverRects)), (void *)trackingNumber)) {
         [[SKPDFHoverWindow sharedHoverWindow] showForAnnotation:(id)[theEvent 
userData] atPoint:NSZeroPoint];
         hoverRect = trackingNumber;
     }


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to