Revision: 7006
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7006&view=rev
Author:   hofman
Date:     2010-12-22 17:58:47 +0000 (Wed, 22 Dec 2010)

Log Message:
-----------
fail print when trying to print a document that does not allow printing

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

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2010-12-22 16:28:56 UTC (rev 7005)
+++ trunk/SKMainDocument.m      2010-12-22 17:58:47 UTC (rev 7006)
@@ -880,7 +880,7 @@
 
 - (void)printDocumentWithSettings:(NSDictionary *)printSettings 
showPrintPanel:(BOOL)showPrintPanel delegate:(id)delegate 
didPrintSelector:(SEL)didPrintSelector contextInfo:(void *)contextInfo {
     NSWindow *printWindow = [[self pdfView] window];
-    if (showPrintPanel == NO || [printWindow attachedSheet] == nil) {
+    if ([[self pdfDocument] allowsPrinting]  && (showPrintPanel == NO || 
[printWindow attachedSheet] == nil)) {
         NSPrintInfo *printInfo = [[[self printInfo] copy] autorelease];
         NSMutableDictionary *infoDict = [printInfo dictionary];
         


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

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to