diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-09-24 23:44:47 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-09-24 23:44:47 +0200 |
commit | a6cf69ecca7f17838f551a2983e2277440ec3f0d (patch) | |
tree | 241eb105146d373c235cda587c3e561e6e9e9296 /src/html.cc | |
parent | b66ff3ea295863bebe2d062df0c235891f9a597b (diff) |
call layout->setBgColor() from web.cc
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 5 |
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 |