diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-09-25 14:55:13 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-09-25 14:55:13 +0000 |
| commit | 978dbdb55531f8b1180906e58aca468631db0fdf (patch) | |
| tree | 4006f4e1af9e1c8e353f71d20f62aff6006cb6df /lib/gui/elistboxcontent.cpp | |
| parent | f69890847fc8e8f8031e564b06109582ad49da87 (diff) | |
| download | enigma2-978dbdb55531f8b1180906e58aca468631db0fdf.tar.gz enigma2-978dbdb55531f8b1180906e58aca468631db0fdf.zip | |
small fix
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
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) |
