Revision: 7615
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7615&view=rev
Author:   hofman
Date:     2011-12-30 12:45:03 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
always update display after a media box change

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2011-12-30 12:27:20 UTC (rev 7614)
+++ trunk/SKMainWindowController.m      2011-12-30 12:45:03 UTC (rev 7615)
@@ -1909,12 +1909,7 @@
     NSDictionary *info = [notification userInfo];
     PDFPage *page = [info objectForKey:SKPDFPagePageKey];
     NSString *action = [info objectForKey:SKPDFPageActionKey];
-    BOOL displayChanged = YES;
-    
-    if ([action isEqualToString:SKPDFPageActionCrop])
-        displayChanged = ([pdfView displayBox] == kPDFDisplayBoxCropBox);
-    else if ([action isEqualToString:SKPDFPageActionResize])
-        displayChanged = ([pdfView displayBox] == kPDFDisplayBoxMediaBox);
+    BOOL displayChanged = [action isEqualToString:SKPDFPageActionCrop] == NO 
|| [pdfView displayBox] == kPDFDisplayBoxCropBox;
         
     if (displayChanged)
         [pdfView layoutDocumentView];

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to