Revision: 2567
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2567&view=rev
Author:   hofman
Date:     2007-07-26 16:20:17 -0700 (Thu, 26 Jul 2007)

Log Message:
-----------
Check if we rotated all pages for spell check before incrementing the page 
index, because the document may have just one page. 

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2007-07-26 19:49:32 UTC (rev 2566)
+++ trunk/SKPDFView.m   2007-07-26 23:20:17 UTC (rev 2567)
@@ -1307,11 +1307,11 @@
     while (YES) {
         range = [[NSSpellChecker sharedSpellChecker] 
checkSpellingOfString:[page string] startingAt:index language:nil wrap:NO 
inSpellDocumentWithTag:spellingTag wordCount:NULL];
         if (range.location != NSNotFound) break;
+        if (didWrap && i == first) break;
         if (++i >= count) {
             i = 0;
             didWrap = YES;
         }
-        if (didWrap && i > first) break;
         page = [[self document] pageAtIndex:i];
         index = 0;
     }


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to