allow progress in TemplatedMultiContent lists - patch by courtesy of nightman
[enigma2.git] / lib / gui / elistboxcontent.cpp
index 081bde706a7f6694d27efd3593910ef517314c89..3c9457e1b5916751f652502bd1f1386dbb4f5f55 100644 (file)
@@ -909,6 +909,10 @@ void eListboxPythonMultiContent::paint(gPainter &painter, eWindowStyle &style, c
 
                                if ((filled < 0) && data) /* if the string is in a negative number, it refers to the 'data' list. */
                                        filled = PyInt_AsLong(PyTuple_GetItem(data, -filled));
+                                       
+                                                       /* don't do anything if percent out of range */
+                               if ((filled < 0) || (filled > 100))
+                                       continue;
 
                                int bwidth = pborderWidth ? PyInt_AsLong(pborderWidth) : 2;