epgplus fix footer line

This commit is contained in:
Jacek Jendrzej
2024-09-05 17:09:41 +02:00
parent 35692a6152
commit 8dba164c64

View File

@@ -387,7 +387,13 @@ void EpgPlus::ChannelEventEntry::paint(bool pisSelected, bool toggleColor)
CShortEPGData shortEpgData; CShortEPGData shortEpgData;
bool ret = CEitManager::getInstance()->getEPGidShort(this->channelEvent.eventID, &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(); this->timeLine->paintGrid();
} }