Revision: 4736
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4736&view=rev
Author:   hofman
Date:     2008-10-04 12:47:58 +0000 (Sat, 04 Oct 2008)

Log Message:
-----------
Force a page change before moving back to the previous currentPage after a 
Rotate All, to work around a PDFKit bug.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-10-04 11:14:26 UTC (rev 4735)
+++ trunk/SKMainWindowController.m      2008-10-04 12:47:58 UTC (rev 4736)
@@ -1683,6 +1683,9 @@
     int i, count = [[pdfView document] pageCount];
     for (i = 0; i < count; i++)
         [[[pdfView document] pageAtIndex:i] setRotation:[[[pdfView document] 
pageAtIndex:i] rotation] + rotation];
+    [pdfView layoutDocumentView];
+    // due to as PDFKit bug, PDFView doesn't notice that it's currentPage has 
changed, so we need to force a page change to have it notice first
+    [pdfView goToPreviousPage:nil];
     [pdfView goToPage:page];
     
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFPageBoundsDidChangeNotification 


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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to