summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-05-19 12:09:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-05-19 12:09:55 +0200
commitcd53d57779d9d93fbd96adb86e01690ff4dcbaf5 (patch)
treeea3d07b91ee62a58bfedd2f286a3dc5a617ad88e
parent0d14872adcb767a729808618a1385ad4bdafb277 (diff)
downloadvdr-cd53d57779d9d93fbd96adb86e01690ff4dcbaf5.tar.gz
vdr-cd53d57779d9d93fbd96adb86e01690ff4dcbaf5.tar.bz2
Fixed a crash in the LCARS skin's main menu in case there is no current channel2.0.2
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY4
-rw-r--r--skinlcars.c4
3 files changed, 9 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 3f8cfb90..72030010 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3151,3 +3151,6 @@ Stefan Braun <louis.braun@gmx.de>
Jochen Dolze <vdr@dolze.de>
for changing cThread::SetIOPriority() from "best effort class" to "idle class" in order
to improve overall performance when an editing process is running
+
+Dominique Dumont <domi.dumont@free.fr>
+ for reporting a crash in the LCARS skin's main menu in case there is no current channel
diff --git a/HISTORY b/HISTORY
index 3e66a707..b6877ffc 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7795,7 +7795,7 @@ Video Disk Recorder Revision History
improve overall performance when an editing process is running (thanks to Jochen
Dolze).
-2013-05-18: Version 2.0.2
+2013-05-19: Version 2.0.2
- Fixed multiple occurrences of the same directory in the recordings list in case there
are directories that only differ in non-alphanumeric characters (was broken by
@@ -7810,3 +7810,5 @@ Video Disk Recorder Revision History
- Fixed an unexpected RCS version tag in the newplugin script.
- Fixed an endless loop in the DrawEllipse() functions for very small ellipses (reported
by Stefan Braun).
+- Fixed a crash in the LCARS skin's main menu in case there is no current channel
+ (reported by Dominique Dumont).
diff --git a/skinlcars.c b/skinlcars.c
index 72e8302e..3ed8225a 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 2.21 2013/03/09 10:43:34 kls Exp $
+ * $Id: skinlcars.c 2.21.1.1 2013/05/19 12:08:52 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);