aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-24 23:44:47 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-09-24 23:44:47 +0200
commita6cf69ecca7f17838f551a2983e2277440ec3f0d (patch)
tree241eb105146d373c235cda587c3e561e6e9e9296 /src/html.cc
parentb66ff3ea295863bebe2d062df0c235891f9a597b (diff)
call layout->setBgColor() from web.cc
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/html.cc b/src/html.cc
index 91b8ac99..1a353224 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1785,10 +1785,9 @@ static void Html_tag_open_body(DilloHtml *html, const char *tag, int tagsize)
*/
if (!bgColor)
bgColor = html->styleEngine->style ()->backgroundColor;
- if (!bgColor)
- bgColor = style::Color::create (HT2LT(html), prefs.bg_color);
- HT2LT(html)->setBgColor(bgColor);
+ if (bgColor)
+ HT2LT(html)->setBgColor(bgColor);
/* Determine a color for visited links.
* This color is computed once per page and used for immediate feedback