X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fgui%2Felistboxcontent.cpp;h=3c9457e1b5916751f652502bd1f1386dbb4f5f55;hb=15a8fe81499c156e251986f5bd33801f54c140e9;hp=081bde706a7f6694d27efd3593910ef517314c89;hpb=e8f443313e47e0653d61d23c90352572194e5608;p=vuplus_dvbapp diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 081bde7..3c9457e 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;