Revision: 7034
http://skim-app.svn.sourceforge.net/skim-app/?rev=7034&view=rev
Author: hofman
Date: 2011-01-03 15:15:30 +0000 (Mon, 03 Jan 2011)
Log Message:
-----------
fix a check
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2011-01-03 12:50:17 UTC (rev 7033)
+++ trunk/SKMainDocument.m 2011-01-03 15:15:30 UTC (rev 7034)
@@ -874,9 +874,7 @@
callback = [NSInvocation invocationWithTarget:delegate
selector:didPrintSelector argument:&self];
[callback setArgument:&contextInfo atIndex:4];
}
- if ([[self pdfDocument] allowsPrinting] == NO || (showPrintPanel &&
[printWindow attachedSheet])) {
- invokePrintCallback(callback, NO);
- } else if (callback) {
+ if ([[self pdfDocument] allowsPrinting] && (showPrintPanel == NO ||
[printWindow attachedSheet] == nil)) {
NSPrintInfo *printInfo = [[[self printInfo] copy] autorelease];
NSMutableDictionary *infoDict = [printInfo dictionary];
@@ -894,6 +892,8 @@
invokePrintCallback(callback, YES);
}
}
+ } else if (callback) {
+ invokePrintCallback(callback, NO);
}
}
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