diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-03 13:43:33 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-05 14:58:36 +0200 |
commit | 1993ea9c1722672987ba07f96737ffa4b9ba1093 (patch) | |
tree | 43c2173839ab1c91e939e73d5848858b6f017c7a | |
parent | ad02170a2ad0e2713e61eb880de92c6195c994cd (diff) | |
download | skin-nopacity-1993ea9c1722672987ba07f96737ffa4b9ba1093.tar.gz skin-nopacity-1993ea9c1722672987ba07f96737ffa4b9ba1093.tar.bz2 |
Fix a possible segfault
-rw-r--r-- | menuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |