aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-06-10 11:17:13 +0000
committermtvee <emptyvee@gmail.com>2009-06-10 11:17:13 +0000
commit33f0e7a530714b3f95ef45860565934528b2f575 (patch)
tree75f44a580969a159df86671e59c67bef7fff5f60 /Source
parent2efda8feab3bb3e6534f7f0c7b2ea103e429ff9d (diff)
downloadsequelpro-33f0e7a530714b3f95ef45860565934528b2f575.tar.gz
sequelpro-33f0e7a530714b3f95ef45860565934528b2f575.tar.bz2
sequelpro-33f0e7a530714b3f95ef45860565934528b2f575.zip
small fix for WebView not printing background colors
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];