mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
avoid division by zero
This commit is contained in:
@@ -761,8 +761,11 @@ void CPictureViewerGui::paint()
|
||||
int sb = fheight* listmaxshow;
|
||||
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
|
||||
|
||||
int sbc= ((playlist.size()- 1)/ listmaxshow)+ 1;
|
||||
int sbs= (selected/listmaxshow);
|
||||
unsigned int tmp_max = listmaxshow;
|
||||
if(!tmp_max)
|
||||
tmp_max = 1;
|
||||
int sbc= ((playlist.size()- 1)/ tmp_max)+ 1;
|
||||
int sbs= (selected/tmp_max);
|
||||
if (sbc < 1)
|
||||
sbc = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user