Revision: 7232
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7232&view=rev
Author:   hofman
Date:     2011-05-15 11:18:26 +0000 (Sun, 15 May 2011)

Log Message:
-----------
rotate through selected search results when using arrows

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2011-05-15 11:16:30 UTC (rev 7231)
+++ trunk/SKMainWindowController.m      2011-05-15 11:18:26 UTC (rev 7232)
@@ -1803,10 +1803,10 @@
         searchResultIndex = 0;
     } else if (direction == 1) {
         if (++searchResultIndex >= (NSInteger)[findResults count])
-            searchResultIndex = [findResults count] - 1;
+            searchResultIndex = 0;
     } else if (direction == -1) {
         if (--searchResultIndex < 0)
-            searchResultIndex = 0;
+            searchResultIndex = [findResults count] - 1;
     }
     
     PDFSelection *currentSel = [findResults count] > 0 ? [findResults 
objectAtIndex:searchResultIndex] : nil;


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

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to