From edaa65d51d0d827e5cc3e8728ea2d683d70bdde1 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 28 Nov 2013 18:21:24 +0400 Subject: [PATCH] gui/channellist.cpp: fix empty box paint, if no logo found --- src/gui/channellist.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 033b66fdb..1f7114828 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1763,7 +1763,9 @@ void CChannelList::showChannelLogo() static int logo_w = 0; static int logo_h = 0; int logo_w_max = full_width / 4; - frameBuffer->paintBoxRel(x + full_width - logo_off - logo_w, y+(theight-logo_h)/2, logo_w, logo_h, COL_MENUHEAD_PLUS_0); + + if (logo_w && logo_h) + frameBuffer->paintBoxRel(x + full_width - logo_off - logo_w, y+(theight-logo_h)/2, logo_w, logo_h, COL_MENUHEAD_PLUS_0); std::string lname; if(g_PicViewer->GetLogoName(chanlist[selected]->channel_id, chanlist[selected]->getName(), lname, &logo_w, &logo_h)) {