diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-04-20 09:13:58 +0200 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-04-20 09:13:58 +0200 |
| commit | 15a8fe81499c156e251986f5bd33801f54c140e9 (patch) | |
| tree | 17a4ab1a5cd664473972a8121a90530d858ff3ef /lib/gui | |
| parent | e8f443313e47e0653d61d23c90352572194e5608 (diff) | |
| download | enigma2-15a8fe81499c156e251986f5bd33801f54c140e9.tar.gz enigma2-15a8fe81499c156e251986f5bd33801f54c140e9.zip | |
allow progress in TemplatedMultiContent lists - patch by courtesy of nightman
Diffstat (limited to 'lib/gui')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 4 |
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; |
