in TemplatedMultiContent Lists, use the default skin color if color tuple element...
authorFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 7 Dec 2010 09:16:30 +0000 (10:16 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Sat, 19 Feb 2011 14:04:47 +0000 (15:04 +0100)
lib/gui/elistboxcontent.cpp

index a19e11a34f7e69cd17a8af9ec9a1d6875143b9d9..ba0794e73ccb416fe85b22aab90e06e99f705ed1 100644 (file)
@@ -641,7 +641,8 @@ static ePyObject lookupColor(ePyObject color, ePyObject data)
        if ((icolor & 0xFF000000) == 0xFF000000)
        {
                int index = icolor & 0xFFFFFF;
-               eDebug("[eListboxPythonMultiContent] template color index: %d", index);
+               if (PyTuple_GetItem(data, index) == Py_None)
+                       return ePyObject();
                return PyTuple_GetItem(data, index);
        }