aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index cea86c3c..9a7f863c 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -79,6 +79,9 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
sshTunnel = nil;
printWebView = [[WebView alloc] init];
+ // otherwise WebView doesn't print background colors
+ WebPreferences* wvPrefs = [printWebView preferences];
+ [wvPrefs setShouldPrintBackgrounds: YES];
[printWebView setFrameLoadDelegate:self];
prefs = [NSUserDefaults standardUserDefaults];