forked from Zabrimus/VDRSternELEC
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdr-plugin-tvguide: fix empty title issue
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
packages/vdr/_vdr-plugin-tvguide/patches/0001-fix-empty-title-issue.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|