mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
fix possible segfault and negative height
This commit is contained in:
@@ -445,6 +445,9 @@ void CInfoViewer::paintHead()
|
||||
void CInfoViewer::paintBody()
|
||||
{
|
||||
int h_body = InfoHeightY - header_height - OFFSET_SHADOW;
|
||||
if(h_body < 0)
|
||||
h_body = 0;
|
||||
|
||||
infoViewerBB->initBBOffset();
|
||||
if (!zap_mode)
|
||||
h_body += infoViewerBB->bottom_bar_offset;
|
||||
|
Reference in New Issue
Block a user