aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.cpp
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-04-20 09:13:58 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-04-20 09:13:58 +0200
commit15a8fe81499c156e251986f5bd33801f54c140e9 (patch)
tree17a4ab1a5cd664473972a8121a90530d858ff3ef /lib/gui/elistboxcontent.cpp
parente8f443313e47e0653d61d23c90352572194e5608 (diff)
downloadenigma2-15a8fe81499c156e251986f5bd33801f54c140e9.tar.gz
enigma2-15a8fe81499c156e251986f5bd33801f54c140e9.zip
allow progress in TemplatedMultiContent lists - patch by courtesy of nightman
Diffstat (limited to 'lib/gui/elistboxcontent.cpp')
-rw-r--r--lib/gui/elistboxcontent.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp
index 081bde70..3c9457e1 100644
--- a/lib/gui/elistboxcontent.cpp
+++ b/lib/gui/elistboxcontent.cpp
@@ -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;