summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 01:39:22 +0000
committerracarr <racarr>2007-01-29 01:39:22 +0000
commit45fcf2af9b090bf256c06c1643c2a388a0867c04 (patch)
treeda49b4c2a4a629611ce5feec99b27a1730320b1b
parent2c189172ef0fcaabbeb37db3383b090304fe7702 (diff)
downloadberyl-desktop-manager-45fcf2af9b090bf256c06c1643c2a388a0867c04.tar.gz
beryl-desktop-manager-45fcf2af9b090bf256c06c1643c2a388a0867c04.tar.bz2
Check for text and image->attrib
-rw-r--r--src/bdm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 173e7d8..7a24974 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -127,13 +127,13 @@ static void updateWidgets(cairo_t * cr,ScreenArea * area)
{
for (image = widget->images; image; image = image->next)
{
- if (image)
+ if (image && image->attrib)
if (image->attrib->needsPainting)
renderImage(cr,image,area);
}
for (text = widget->texts; text; text=text->next)
{
- if (text)
+ if (text && text->attrib)
if (text->attrib->needsPainting)
renderText(cr,text,area);
}