small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 25 Sep 2007 14:55:13 +0000 (14:55 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 25 Sep 2007 14:55:13 +0000 (14:55 +0000)
lib/gui/elistboxcontent.cpp

index 8c7a5005e17c13bbbb9d9aaba71be7bf1fec71aa..d0e8519891987508eec28f28d671a9fe06e971f7 100644 (file)
@@ -478,16 +478,12 @@ static void clearRegion(gPainter &painter, eWindowStyle &style, eListboxStyle *l
                {
                        int color = PyInt_AsLong(pbackColor);
                        painter.setBackgroundColor(gRGB(color));
                {
                        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)
                else
                        style.setStyle(painter, eWindowStyle::styleListboxNormal);
                if (clear)