diff options
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 |