mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
neutrino: fix possible div-by-zero in scrollbar calculation
This commit is contained in:
committed by
Jacek Jendrzej
parent
5420e509da
commit
a33086568b
@@ -615,7 +615,7 @@ void CBouquetList::paint()
|
||||
int sb = fheight* listmaxshow;
|
||||
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
|
||||
|
||||
int sbc= ((bsize - 1)/ listmaxshow)+ 1;
|
||||
int sbc= ((bsize - 1)/ listmaxshow)+ 1; /* bsize is > 0, so sbc is also > 0 */
|
||||
float sbh= (sb - 4)/ sbc;
|
||||
int sbs= (selected/listmaxshow);
|
||||
|
||||
|
Reference in New Issue
Block a user