diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | menu.c | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -567,3 +567,5 @@ Video Disk Recorder Revision History available). - Increased the buffer for key names received from LIRC (thanks to Andre Valentin). +- Fixed handling a channel group separator at the very beginning of the + 'channels.conf' file. @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.79 2001/07/22 13:46:07 kls Exp $ + * $Id: menu.c 1.80 2001/07/22 15:16:58 kls Exp $ */ #include "menu.h" @@ -1829,11 +1829,11 @@ cDisplayChannel::~cDisplayChannel() void cDisplayChannel::DisplayChannel(const cChannel *Channel) { - if (Channel && Channel->number) + if (Channel && Channel->number > 0) Interface->DisplayChannelNumber(Channel->number); int BufSize = Width() + 1; char buffer[BufSize]; - if (Channel && Channel->number) + if (Channel && Channel->number > 0) snprintf(buffer, BufSize, "%d%s %s", Channel->number, number ? "-" : "", Channel->name); else snprintf(buffer, BufSize, "%s", Channel ? Channel->name : tr("*** Invalid Channel ***")); |