Revision: 5602
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5602&view=rev
Author:   hofman
Date:     2009-08-30 11:05:52 +0000 (Sun, 30 Aug 2009)

Log Message:
-----------
really fix hang due to whitespace at beginning of preview tooltip note string

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

Modified: trunk/SKPDFToolTipWindow.m
===================================================================
--- trunk/SKPDFToolTipWindow.m  2009-08-30 10:16:56 UTC (rev 5601)
+++ trunk/SKPDFToolTipWindow.m  2009-08-30 11:05:52 UTC (rev 5602)
@@ -294,7 +294,7 @@
             NSUInteger i, l = [string length];
             NSRange r = NSMakeRange(0, l);
             
-            while (NSNotFound != (i = [string 
rangeOfCharacterFromSet:[NSCharacterSet whitespaceAndNewlineCharacterSet] 
options:NSAnchoredSearch range:r].location))
+            while (NSNotFound != (i = NSMaxRange([string 
rangeOfCharacterFromSet:[NSCharacterSet whitespaceAndNewlineCharacterSet] 
options:NSAnchoredSearch range:r])))
                 r = NSMakeRange(i, l - i);
             while (NSNotFound != (i = [string 
rangeOfCharacterFromSet:[NSCharacterSet whitespaceAndNewlineCharacterSet] 
options:NSBackwardsSearch | NSAnchoredSearch range:r].location))
                 r.length = i - r.location;


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to