aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-10-14 19:14:00 +0200
committerSebastian Geerken <devnull@localhost>2013-10-14 19:14:00 +0200
commit5271d9882e06d2fa8ffb2c6c4323a1fd88db81d4 (patch)
treec36b7449967dadb0f583a6428fcf5b36e4e5718b /dw
parent2201fbb06e12a240f8ccb3347311f586c1fa6574 (diff)
Reset background image of the layout.
Diffstat (limited to 'dw')
-rw-r--r--dw/layout.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index f0470748..c938e525 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -745,7 +745,8 @@ void Layout::setBgImage (style::StyleImage *bgImage,
if (layoutImgRenderer && this->bgImage)
this->bgImage->removeExternalImgRenderer (layoutImgRenderer);
- bgImage->ref ();
+ if (bgImage)
+ bgImage->ref ();
if (this->bgImage)
this->bgImage->unref ();