aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPrintController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPPrintController.m')
-rw-r--r--Source/SPPrintController.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPPrintController.m b/Source/SPPrintController.m
index d12f764f..b8f323c4 100644
--- a/Source/SPPrintController.m
+++ b/Source/SPPrintController.m
@@ -44,7 +44,7 @@
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
{
// Because we need the webFrame loaded (for preview), we've moved the actual printing here
- NSPrintInfo *printInfo = [self printInfo];
+ NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
NSSize paperSize = [printInfo paperSize];
NSRect printableRect = [printInfo imageablePageBounds];
@@ -89,7 +89,7 @@
[op setPrintPanel:printPanel];
- [op runOperationModalForWindow:tableWindow
+ [op runOperationModalForWindow:[self parentWindow]
delegate:self
didRunSelector:nil
contextInfo:nil];
@@ -129,7 +129,7 @@
[[buttons objectAtIndex:0] setKeyEquivalentModifierMask:NSCommandKeyMask];
[[buttons objectAtIndex:1] setKeyEquivalent:@"\r"];
- [alert beginSheetModalForWindow:tableWindow modalDelegate:self didEndSelector:@selector(printWarningDidEnd:returnCode:contextInfo:) contextInfo:NULL];
+ [alert beginSheetModalForWindow:[self parentWindow] modalDelegate:self didEndSelector:@selector(printWarningDidEnd:returnCode:contextInfo:) contextInfo:NULL];
return;
}
@@ -196,7 +196,7 @@
- (void)generateHTMLForPrinting
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
+
// Set up template engine with your chosen matcher
MGTemplateEngine *engine = [MGTemplateEngine templateEngine];