remove unneeded code,
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 13 Nov 2007 15:10:55 +0000 (15:10 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 13 Nov 2007 15:10:55 +0000 (15:10 +0000)
fix copy & paste typo

lib/gui/elistboxcontent.cpp

index 2278db1611e6101509325e9b510c673dfdf3ddc0..fd7341a979c8306d3acd8da35ca82758309013bb 100644 (file)
@@ -576,7 +576,7 @@ static void clearRegion(gPainter &painter, eWindowStyle &style, eListboxStyle *l
        {
                if (pforeColorSelected)
                {
        {
                if (pforeColorSelected)
                {
-                       int color = PyInt_AsLong(pforeColor);
+                       int color = PyInt_AsLong(pforeColorSelected);
                        painter.setForegroundColor(gRGB(color));
                }
                /* if we have a local foreground color set, use that. */
                        painter.setForegroundColor(gRGB(color));
                }
                /* if we have a local foreground color set, use that. */
@@ -765,8 +765,6 @@ void eListboxPythonMultiContent::paint(gPainter &painter, eWindowStyle &style, c
                                                int color = PyInt_AsLong(pborderColor);
                                                painter.setForegroundColor(gRGB(color));
                                        }
                                                int color = PyInt_AsLong(pborderColor);
                                                painter.setForegroundColor(gRGB(color));
                                        }
-                                       else if (pforeColor) // reset to normal color
-                                               style.setStyle(painter, selected ? eWindowStyle::styleListboxSelected : eWindowStyle::styleListboxNormal);
 
                                        rect.setRect(x, y, width, bwidth);
                                        painter.fill(rect);
 
                                        rect.setRect(x, y, width, bwidth);
                                        painter.fill(rect);