Revision: 7310
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7310&view=rev
Author:   hofman
Date:     2011-07-01 01:21:14 +0000 (Fri, 01 Jul 2011)

Log Message:
-----------
fix position of sync point when zoom is not 1

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2011-06-23 14:51:41 UTC (rev 7309)
+++ trunk/SKPDFView.m   2011-07-01 01:21:14 UTC (rev 7310)
@@ -450,9 +450,10 @@
     if (syncPageIndex == [pdfPage pageIndex]) {
         [NSGraphicsContext saveGraphicsState];
         
-        NSRect rect = [self convertRect:[self convertRect:[pdfPage 
boundsForBox:kPDFDisplayBoxMediaBox] fromPage:pdfPage] toView:[self 
documentView]];
+        NSRect rect = [self convertRect:[self convertRect:[pdfPage 
boundsForBox:[self displayBox]] fromPage:pdfPage] toView:[self documentView]];
         NSAffineTransform *transform = [NSAffineTransform transform];
         [transform translateXBy:NSMinX(rect) yBy:NSMinY(rect)];
+        [transform scaleBy:[self scaleFactor]];
         [transform concat];
         [pdfPage transformContextForBox:[self displayBox]];
         


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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to