Revision: 3465
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3465&view=rev
Author:   hofman
Date:     2008-03-11 08:59:54 -0700 (Tue, 11 Mar 2008)

Log Message:
-----------
Make sure the pdf view shows the crop box after cropping.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-03-11 14:35:14 UTC (rev 3464)
+++ trunk/SKMainWindowController.m      2008-03-11 15:59:54 UTC (rev 3465)
@@ -1796,6 +1796,9 @@
     
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
             object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"crop", @"action", page, @"page", nil]];
+    
+    // make sure we show the crop box
+    [pdfView setDisplayBox:kPDFDisplayBoxCropBox];
 }
 
 - (IBAction)crop:(id)sender {
@@ -1827,6 +1830,8 @@
     [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFDocumentPageBoundsDidChangeNotification 
             object:[pdfView document] userInfo:[NSDictionary 
dictionaryWithObjectsAndKeys:@"crop", @"action", nil]];
     
+    // make sure we show the crop box
+    [pdfView setDisplayBox:kPDFDisplayBoxCropBox];
     // layout after cropping when you're in the middle of a document can lose 
the current page
     [pdfView goToPage:currentPage];
     [[pdfView documentView] scrollRectToVisible:[pdfView convertRect:[pdfView 
convertRect:visibleRect fromPage:currentPage] toView:[pdfView documentView]]];


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to