summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menuitem.c b/menuitem.c
index 4c1f363..7904563 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -80,7 +80,7 @@ void cNopacityMenuItem::CreatePixmapTextScroller(int totalWidth) {
}
void cNopacityMenuItem::SetAlpha(int alpha) {
- pixmapBackground->SetAlpha(alpha);
+ if (pixmapBackground) pixmapBackground->SetAlpha(alpha);
if (pixmapForeground) pixmapForeground->SetAlpha(alpha);
if (pixmapStatic) pixmapStatic->SetAlpha(alpha);
if (pixmapTextScroller) pixmapTextScroller->SetAlpha(alpha);