summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 01:37:07 +0000
committerracarr <racarr>2007-01-29 01:37:07 +0000
commit25692a02651d75097411d9c2548e73ac0276ad5d (patch)
treea4b9085f56ed01a23ac56db53d09de3b2ef17b0e
parentebf5036252dfd7c7e06ca5606e9b13af9b86482e (diff)
downloadberyl-desktop-manager-25692a02651d75097411d9c2548e73ac0276ad5d.tar.gz
beryl-desktop-manager-25692a02651d75097411d9c2548e73ac0276ad5d.tar.bz2
Check for image or text before rendering it
-rw-r--r--src/bdm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 2fb3726..228df97 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -128,13 +128,15 @@ static void updateWidgets(cairo_t * cr,ScreenArea * area)
{
for (image = widget->images; image; image = image->next)
{
- if (image->attrib->needsPainting)
- renderImage(cr,image,area);
+ if (image)
+ if (image->attrib->needsPainting)
+ renderImage(cr,image,area);
}
for (text = widget->texts; text; text=text->next)
{
- if (text->attrib->needsPainting)
- renderText(cr,text,area);
+ if (text)
+ if (text->attrib->needsPainting)
+ renderText(cr,text,area);
}
}