summaryrefslogtreecommitdiff
path: root/displaychannel.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-05-25 13:49:57 +0200
committerkamel5 <kamel5 (at) gmx (dot) net>2018-05-25 13:49:57 +0200
commit0a7cbbe20242c08484290e1f3603ac34c593a721 (patch)
treed8af92471e03627279b7bd606bd498e42a91930f /displaychannel.c
parent4342eb2982399a49870040ee343bbaeece420757 (diff)
downloadskin-lcarsng-0a7cbbe20242c08484290e1f3603ac34c593a721.tar.gz
skin-lcarsng-0a7cbbe20242c08484290e1f3603ac34c593a721.tar.bz2
Eliminate a segfault while starting vdr
Diffstat (limited to 'displaychannel.c')
-rw-r--r--displaychannel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/displaychannel.c b/displaychannel.c
index 17e37a9..3e0702a 100644
--- a/displaychannel.c
+++ b/displaychannel.c
@@ -295,11 +295,11 @@ void cLCARSNGDisplayChannel::DrawTimer(void)
const cChannel *Channel = Timer->Channel();
const cEvent *Event = Timer->Event();
int y1 = i * Gap / 2;
- if (Channel) {
+ if (Channel && Event) {
osd->DrawText(xc01, y + y1, cString::sprintf("%d", Channel->Number()), Theme.Color(clrEventShortText), frameColor, cFont::GetFont(fontSml), xc02 - xc01 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder);
+ osd->DrawText(xc04, y + y1, cString::sprintf("%s", *Date), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06a - xc04 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder);
+ osd->DrawText(xc06a, y + y1, cString::sprintf("%s", Event->Title()), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06l - xc06a - Gap - 1, lineHeight - 2 * y1, taLeft | taBorder);
}
- osd->DrawText(xc04, y + y1, cString::sprintf("%s", *Date), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06a - xc04 - Gap - 1, lineHeight - 2 * y1, taRight | taBorder);
- osd->DrawText(xc06a, y + y1, cString::sprintf("%s", Event->Title()), Theme.Color(clrEventShortText), Theme.Color(clrBackground), cFont::GetFont(fontSml), xc06l - xc06a - Gap - 1, lineHeight - 2 * y1, taLeft | taBorder);
i++;
}
}