From 68f0b34382290fbe8e291cdce208d22bf292e52a Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 12 Feb 2010 17:34:14 +0000 Subject: [PATCH] dont paint '-' if left align git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@329 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/63509b89cce70633d8c3d1d97b2cbc35a45ad6e1 Author: Jacek Jendrzej Date: 2010-02-12 (Fri, 12 Feb 2010) Origin message was: ------------------ dont paint '-' if left align git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@329 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 4624a06f0..0c2ab9a78 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1540,8 +1540,8 @@ void CChannelList::paintItem(int pos) int pb_space = prg_offset - title_offset; int pb_max = pb_space - 4; if (!(p_event->description.empty())) { - - snprintf(nameAndDescription+l, sizeof(nameAndDescription)-l," - "); + if(!g_settings.channellist_epgtext_align_right) + snprintf(nameAndDescription+l, sizeof(nameAndDescription)-l," - "); unsigned int ch_name_len = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->getRenderWidth(nameAndDescription, true); unsigned int ch_desc_len = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getRenderWidth(p_event->description, true);