From 4e9ac3ce4f92d1f2cfe119aeac5b41666b7fe7d5 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 5 Sep 2024 21:34:45 +0200 Subject: [PATCH] epgplus fix footer line Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b8272a32a25544f83965dc6b4e0b210361a6ac25 Author: Jacek Jendrzej Date: 2024-09-05 (Thu, 05 Sep 2024) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/epgplus.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/epgplus.cpp b/src/gui/epgplus.cpp index d21e2ff02..bb766240d 100644 --- a/src/gui/epgplus.cpp +++ b/src/gui/epgplus.cpp @@ -387,7 +387,13 @@ void EpgPlus::ChannelEventEntry::paint(bool pisSelected, bool toggleColor) CShortEPGData shortEpgData; bool ret = CEitManager::getInstance()->getEPGidShort(this->channelEvent.eventID, &shortEpgData); - this->footer->paintEventDetails(this->channelEvent.description, ret ? shortEpgData.info1 : ""); + std::string shortepg = shortEpgData.info1; + if(!shortepg.empty()) + { + shortepg = str_replace("\n", " ", shortepg); + shortepg = str_replace("\\n", " ", shortepg); + } + this->footer->paintEventDetails(this->channelEvent.description, ret ? shortepg : ""); this->timeLine->paintGrid(); }