summaryrefslogtreecommitdiff
path: root/skinlcars.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-05-19 12:07:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-05-19 12:07:07 +0200
commitfc697bfdb13978512ab6c80eb9186e6b18f81161 (patch)
treea72085cc5b1977ee3b46ff5b35368b25efc1be59 /skinlcars.c
parent818763b332d6e3b33bee4553ddb5b3ff67152e73 (diff)
downloadvdr-fc697bfdb13978512ab6c80eb9186e6b18f81161.tar.gz
vdr-fc697bfdb13978512ab6c80eb9186e6b18f81161.tar.bz2
Fixed a crash in the LCARS skin's main menu in case there is no current channel
Diffstat (limited to 'skinlcars.c')
-rw-r--r--skinlcars.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/skinlcars.c b/skinlcars.c
index 09d52555..7201e6bf 100644
--- a/skinlcars.c
+++ b/skinlcars.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinlcars.c 3.1 2013/04/09 11:10:25 kls Exp $
+ * $Id: skinlcars.c 3.2 2013/05/19 12:04:09 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
@@ -1340,6 +1340,8 @@ void cSkinLCARSDisplayMenu::DrawLive(const cChannel *Channel)
DrawMainFrameUpper(Theme.Color(clrChannelFrameBg));
osd->DrawText(xd00, yd00, tr("LIVE"), Theme.Color(clrChannelFrameBg), Theme.Color(clrBackground), tallFont, xd07 - xd00, yd01 - yd00, taTop | taRight | taBorder);
}
+ if (!Channel)
+ return;
if (initial || Channel != lastChannel) {
osd->DrawText(xa00, yt00, itoa(Channel->Number()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), tallFont, xa02 - xa00, yt02 - yt00, taTop | taRight | taBorder);
osd->DrawText(xa03, yt00, Channel->Name(), Theme.Color(clrChannelName), Theme.Color(clrBackground), tallFont, xd00 - xa03, yd01 - yd00, taTop | taLeft);