From bfd2b2da051103862a46fcf8352d467e489f45a7 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 1 Sep 2013 17:03:32 +0200 Subject: [PATCH] CChannelList::paintItem:-fix description width with scrambled icon Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/4c8e32101c7dc1633568e94980641464726ed6d4 Author: Jacek Jendrzej Date: 2013-09-01 (Sun, 01 Sep 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 13b71dbb3..648d683aa 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -2006,7 +2006,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint) int max_desc_len = width - numwidth - prg_offset - ch_name_len - 15 - 20; // 15 = scrollbar, 20 = spaces if (chan->scrambled || (g_settings.channellist_extended ||g_settings.channellist_epgtext_align_right)) - max_desc_len -= icon_space; /* do we need space for the lock/rec icon? */ + max_desc_len -= icon_space+g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getWidth(); /* do we need space for the lock/rec icon? */ if (max_desc_len < 0) max_desc_len = 0;