Fixed displaying the group separators in the channel display

This commit is contained in:
Klaus Schmidinger
2002-11-01 12:18:45 +01:00
parent 0813564ed6
commit 5a418a9efe
3 changed files with 7 additions and 4 deletions

8
menu.c
View 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.221 2002/10/27 14:06:02 kls Exp $
* $Id: menu.c 1.222 2002/11/01 12:15:45 kls Exp $
*/
#include "menu.h"
@@ -2378,10 +2378,10 @@ void cDisplayChannel::DisplayChannel(const cChannel *Channel)
char buffer[BufSize];
*buffer = 0;
if (Channel) {
if (Channel->Number() > 0)
snprintf(buffer, BufSize, "%d%s %s", Channel->Number(), number ? "-" : "", Channel->Name());
else if (Channel->Name())
if (Channel->GroupSep())
snprintf(buffer, BufSize, "%s", Channel->Name());
else
snprintf(buffer, BufSize, "%d%s %s", Channel->Number(), number ? "-" : "", Channel->Name());
}
else if (number)
snprintf(buffer, BufSize, "%d-", number);