diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-12-07 10:16:30 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2011-02-19 15:04:47 +0100 |
| commit | cd6f5da9a8ca77bfceeefe10f332aab3bb3e3de7 (patch) | |
| tree | 6105196f3f9857e5188b78dc4a275dc81ee3f042 /lib/gui/elistboxcontent.cpp | |
| parent | 7030e4d7bb27c16098b04526d0bfc72291459665 (diff) | |
| download | enigma2-cd6f5da9a8ca77bfceeefe10f332aab3bb3e3de7.tar.gz enigma2-cd6f5da9a8ca77bfceeefe10f332aab3bb3e3de7.zip | |
in TemplatedMultiContent Lists, use the default skin color if color tuple element is None
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
| -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 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); } |
