From ced194abb46ecf2d2fd8d852497293ccb40d6337 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 18 Apr 2008 23:59:17 +0200 Subject: Fixed bottom row style classes in list view of what's on. --- pages/whats_on.ecpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp index 7744b4d..736d0ba 100644 --- a/pages/whats_on.ecpp +++ b/pages/whats_on.ecpp @@ -165,7 +165,6 @@ if (type == "now") { string truncDescription = StringWordTruncate(epgEvent->LongDescr(), maximumTooltipHintLength, truncated); string longDescription = StringEscapeAndBreak(StringWordTruncate(epgEvent->LongDescr(), maximumDescriptionLength)) + "

" + tr("Click to view details."); - bool lastCurrentChanel = true; const cChannel* Channel = epgEvent->Channel(); if (!Channel) continue; int chNumber = Channel->Number(); @@ -196,7 +195,8 @@ if (type == "now") { <%cpp> } else { // mode == "list" - lastCurrentChanel = ((chNumber == LiveSetup().GetLastChannel()) || (!Channels.Next(Channel))); + std::list::iterator last = i; + bool lastCurrentChanel = (++last == eventList.end()); <& pageelems.epg_tool_box detail=(0) epgid=(epgEvent->Id()) title=(epgEvent->Title()) startTime=(epgEvent->GetStartTime()) endTime=(epgEvent->GetEndTime()) lastCurrentChanel=(lastCurrentChanel ? 1 : 0) &> -- cgit v1.2.3