diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-12-07 10:16:30 +0100 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-12-07 10:16:30 +0100 |
| commit | 322f606a88150a635adf7b42da6a96667aed0058 (patch) | |
| tree | 3a51a47d5fdcbd3c3c8e8f8a16482443aa137d9a | |
| parent | 41241f78914d0f06f968973cd67cd7b655f645c8 (diff) | |
| download | enigma2-322f606a88150a635adf7b42da6a96667aed0058.tar.gz enigma2-322f606a88150a635adf7b42da6a96667aed0058.zip | |
in TemplatedMultiContent Lists, use the default skin color if color tuple element is None
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 97e2cc67..1dc4f48c 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -640,7 +640,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); } |
