From: Andreas Monzner Date: Tue, 25 Sep 2007 14:55:13 +0000 (+0000) Subject: small fix X-Git-Tag: 2.6.0~1859 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/978dbdb55531f8b1180906e58aca468631db0fdf small fix --- diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 8c7a5005..d0e85198 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -478,16 +478,12 @@ static void clearRegion(gPainter &painter, eWindowStyle &style, eListboxStyle *l { int color = PyInt_AsLong(pbackColor); painter.setBackgroundColor(gRGB(color)); - } - else if (local_style) - { - // transparent background? - if (local_style->m_transparent_background) - clear=false; - // if we have a local background color set, use that. - else if (local_style->m_background_color_set) - painter.setBackgroundColor(local_style->m_background_color); - } + } // transparent background? + else if (local_style && local_style->m_transparent_background) + clear=false; + // if we have a local background color set, use that. + else if (local_style && local_style->m_background_color_set) + painter.setBackgroundColor(local_style->m_background_color); else style.setStyle(painter, eWindowStyle::styleListboxNormal); if (clear)