Skip to content

Commit

Permalink
vdr-plugin-tvguide: fix empty title issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rellla committed Oct 31, 2022
1 parent 5e77b3b commit 7763cc4
Showing 1 changed file with 28 additions and 0 deletions.
@@ -0,0 +1,28 @@
From afd064e0bf92b69006d2c16b21e3d1783f55d208 Mon Sep 17 00:00:00 2001
From: Andreas Baierl <ichgeh@imkreisrum.de>
Date: Mon, 31 Oct 2022 08:47:04 +0100
Subject: [PATCH] fix empty title issue

---
epggrid.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/epggrid.c b/epggrid.c
index 90475dd..b153828 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -131,7 +131,10 @@ void cEpgGrid::drawText() {
}
}
} else if (config.displayMode == eHorizontal) {
- cString strTitle = CutText(event->Title(), viewportHeight - borderWidth, fontManager.FontGridHorizontal).c_str();
+ cString strTitle = "";
+ if (event->Title()) {
+ strTitle = CutText(event->Title(), viewportHeight - borderWidth, fontManager.FontGridHorizontal).c_str();
+ }
int titleY = 0;
if (config.showTimeInGrid) { // mit Zeitangabe im Grid
pixmap->DrawText(cPoint(borderWidth, borderWidth), *timeString, colorText, colorTextBack, fontManager.FontGridHorizontalSmall);
--
2.30.2

0 comments on commit 7763cc4

Please sign in to comment.