From a6cf69ecca7f17838f551a2983e2277440ec3f0d Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 24 Sep 2010 23:44:47 +0200 Subject: call layout->setBgColor() from web.cc --- src/html.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/html.cc') 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 -- cgit v1.2.3