Revision: 7231
http://skim-app.svn.sourceforge.net/skim-app/?rev=7231&view=rev
Author: hofman
Date: 2011-05-15 11:16:30 +0000 (Sun, 15 May 2011)
Log Message:
-----------
scroll to current search result instead of first page of all selected search
results
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2011-05-15 10:23:16 UTC (rev 7230)
+++ trunk/SKMainWindowController.m 2011-05-15 11:16:30 UTC (rev 7231)
@@ -1822,7 +1822,7 @@
}
if (scroll && [currentSel hasCharacters]) {
- PDFPage *page = [fullSel safeFirstPage];
+ PDFPage *page = [currentSel safeFirstPage];
NSRect rect = NSIntersectionRect(NSInsetRect([fullSel
boundsForPage:page], -50.0, -50.0), [page boundsForBox:kPDFDisplayBoxCropBox]);
[pdfView goToPage:page];
[pdfView goToRect:rect onPage:page];
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