summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-01 09:28:39 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-01 09:28:39 +0200
commit01c55ad694fd5cea8b5a75c273bab8be3a2e7408 (patch)
tree4423a627133f62d74d149b72adc0e8334a829c6a /channels.c
parent8f628ceb8ceac2648bd8b33f1d250bba9d5ff3b3 (diff)
downloadvdr-01c55ad694fd5cea8b5a75c273bab8be3a2e7408.tar.gz
vdr-01c55ad694fd5cea8b5a75c273bab8be3a2e7408.tar.bz2
Fixed getting the maximum short channel name length in case there are no short names at all
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 4108b7b4..65e51348 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 2.21 2012/03/11 13:29:06 kls Exp $
+ * $Id: channels.c 2.22 2012/04/01 09:27:08 kls Exp $
*/
#include "channels.h"
@@ -955,7 +955,7 @@ int cChannels::MaxShortChannelNameLength(void)
if (!maxShortChannelNameLength) {
for (cChannel *channel = First(); channel; channel = Next(channel)) {
if (!channel->GroupSep())
- maxShortChannelNameLength = max(Utf8StrLen(channel->ShortName()), maxShortChannelNameLength);
+ maxShortChannelNameLength = max(Utf8StrLen(channel->ShortName(true)), maxShortChannelNameLength);
}
}
return maxShortChannelNameLength;