Revision: 7229
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7229&view=rev
Author:   hofman
Date:     2011-05-14 09:54:23 +0000 (Sat, 14 May 2011)

Log Message:
-----------
don't update selection and animate when search highlight prefs change

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2011-05-13 11:11:28 UTC (rev 7228)
+++ trunk/SKMainWindowController.m      2011-05-14 09:54:23 UTC (rev 7229)
@@ -1836,10 +1836,10 @@
         highlightTimer = [[NSTimer scheduledTimerWithTimeInterval:1.0 
target:self selector:@selector(removeHighlightedSelections:) userInfo:nil 
repeats:NO] retain];
     }
     
-    if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKDisableAnimatedSearchHighlightKey] == NO && [firstSel 
hasCharacters])
+    if (scroll && [[NSUserDefaults standardUserDefaults] 
boolForKey:SKDisableAnimatedSearchHighlightKey] == NO && [firstSel 
hasCharacters])
         [pdfView setCurrentSelection:firstSel animate:YES];
     
-    if (currentSel)
+    if (scroll && currentSel)
         [pdfView setCurrentSelection:currentSel];
 }
 


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