text2skin - show partial channel numbers whilst changing channels

Message ID 021d01c6031b$877d6460$0200a8c0@VAIO
State New
Headers

Commit Message

Chris Warren Dec. 17, 2005, 3:06 p.m. UTC
  Hi all,

Please find attached a patch against the latest CVS version of the text2skin
plugin which makes it show partial channel numbers whilst changing channels.

The ChannelNumber(const cChannel *Channel, int Number) function performs a
check for Channel being null and displays the partial channel number
appended by "-" when it is. However it's never called when Channel is null
due to a check in display.c.

Chris
  

Patch

--- text2skin.orig/display.c    2005-12-17 14:56:22.637342464 +0000
+++ text2skin/display.c 2005-12-17 14:56:56.975122328 +0000
@@ -116,9 +116,7 @@ 
 {
        switch (Token.Type) {
        case tChannelNumber:
-               return mChannel != NULL
-                      ? (cxType)ChannelNumber(mChannel, mNumber)
-                      : (cxType)false;
+               return ChannelNumber(mChannel, mNumber);

        case tChannelName:
                return mChannel != NULL