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)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 7 Dec 2010 09:16:30 +0000 (10:16 +0100)
lib/gui/elistboxcontent.cpp

index 97e2cc6..1dc4f48 100644 (file)
@@ -640,7 +640,8 @@ static ePyObject lookupColor(ePyObject color, ePyObject data)
        if ((icolor & 0xFF000000) == 0xFF000000)
        {
                int index = icolor & 0xFFFFFF;
        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);
        }
 
                return PyTuple_GetItem(data, index);
        }