aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.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 /dw/layout.cc
parentb66ff3ea295863bebe2d062df0c235891f9a597b (diff)
call layout->setBgColor() from web.cc
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index f3ff896e..aa9f05ed 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -611,7 +611,8 @@ void Layout::updateCursor ()
void Layout::setBgColor (style::Color *color)
{
bgColor = color;
- view->setBgColor (bgColor);
+ if (view)
+ view->setBgColor (bgColor);
}
void Layout::resizeIdle ()