aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-12-07 10:16:30 +0100
committerghost <andreas.monzner@multimedia-labs.de>2011-02-19 15:04:47 +0100
commitcd6f5da9a8ca77bfceeefe10f332aab3bb3e3de7 (patch)
tree6105196f3f9857e5188b78dc4a275dc81ee3f042 /lib
parent7030e4d7bb27c16098b04526d0bfc72291459665 (diff)
downloadenigma2-cd6f5da9a8ca77bfceeefe10f332aab3bb3e3de7.tar.gz
enigma2-cd6f5da9a8ca77bfceeefe10f332aab3bb3e3de7.zip
in TemplatedMultiContent Lists, use the default skin color if color tuple element is None
Diffstat (limited to 'lib')
-rw-r--r--lib/gui/elistboxcontent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index a19e11a3..ba0794e7 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -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);
}