From e598ef45be16ce39dc951db0e920b7bb3da0d009 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 22 Oct 2012 11:03:05 +0400 Subject: [PATCH] gui/streaminfo2.cpp: fix crash, when shown without current channel (i.e. channel list empty) Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/755ddcb3da34638a1d57425226cab2a6b31109b4 Author: [CST] Focus Date: 2012-10-22 (Mon, 22 Oct 2012) --- src/gui/streaminfo2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index d5e969656..94357d8b6 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -447,6 +447,8 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) int spaceoffset = 0,i = 0; int ypos1 = ypos; int box_width = width*2/3 - 10; + + yypos = ypos; if(box_h > 0) frameBuffer->paintBoxRel (0, ypos, box_width, box_h, COL_MENUHEAD_PLUS_0);