[ANNOUNCE] VDR developer version 1.7.27

Message ID CAA7C2qhB+GiGs047jJGnMNNJbJ-jKN1nLfjaUgRWJogdkkqnnw@mail.gmail.com
State New
Headers

Commit Message

VDRU VDRU March 31, 2012, 11:54 p.m. UTC
  On Sat, Mar 31, 2012 at 4:10 PM, Dominic Evans <oldmanuk@gmail.com> wrote:
>>> - The channel name column in the "What's on now/next" menu now adjusts its
>>> width  to display the full short name of each channel (suggested by Dominic
>>> Evans).
>
> Unfortunately, this doesn't seem to be working. I just upgraded to vdr
> 1.7.27 and the channel name is now only a single character for every
> channel.

I had the same problem here as well. Klaus has fixed it, try the patch below:

--------------------
      }
   return maxShortChannelNameLength;
  

Comments

Dominic Evans April 1, 2012, 9:16 a.m. UTC | #1
On 1 April 2012 00:54, VDR User <user.vdr@gmail.com> wrote:
>> Unfortunately, this doesn't seem to be working. I just upgraded to vdr
>> 1.7.27 and the channel name is now only a single character for every
>> channel.
>
> I had the same problem here as well. Klaus has fixed it, try the patch

Thanks. Have submitted this to the yaVDR guys on github to add to
their debian/patches.
  

Patch

diff -pruN vdr-1.7.27-orig/channels.c vdr-1.7.27/channels.c
--- vdr-1.7.27-orig/channels.c  2012-03-25 22:46:14.294920001 -0700
+++ vdr-1.7.27/channels.c       2012-03-28 09:29:23.734920001 -0700
@@ -955,7 +955,7 @@  int cChannels::MaxShortChannelNameLength
   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);
          }