From 322f606a88150a635adf7b42da6a96667aed0058 Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Tue, 7 Dec 2010 10:16:30 +0100 Subject: [PATCH] in TemplatedMultiContent Lists, use the default skin color if color tuple element is None --- lib/gui/elistboxcontent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 97e2cc6..1dc4f48 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); } -- 2.7.4