Revision: 3791
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3791&view=rev
Author:   hofman
Date:     2008-04-22 11:07:29 -0700 (Tue, 22 Apr 2008)

Log Message:
-----------
Improve determination of visible pages.

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-04-22 17:34:26 UTC (rev 3790)
+++ trunk/SKPDFView.m   2008-04-22 18:07:29 UTC (rev 3791)
@@ -2325,8 +2325,12 @@
         
         page = [self pageForPoint:SKTopLeftPoint(visibleRect) nearest:YES];
         first = [page pageIndex];
+        page = [self pageForPoint:SKTopRightPoint(visibleRect) nearest:YES];
+        first = MIN(first, [page pageIndex]);
         page = [self pageForPoint:SKBottomRightPoint(visibleRect) nearest:YES];
         last = [page pageIndex];
+        page = [self pageForPoint:SKBottomLeftPoint(visibleRect) nearest:YES];
+        last = MAX(last, [page pageIndex]);
         range = NSMakeRange(first, last - first + 1);
     } else {
         range = NSMakeRange(NSNotFound, 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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to