VDR 1.3.48: bug in cMenuEditIntItem

Message ID 444E56B1.7060708@cadsoft.de
State New
Headers

Commit Message

Klaus Schmidinger April 25, 2006, 5:04 p.m. UTC
  A small bug in cMenuEditIntItem has been fixed, which prevented
the display from being updated correctly when pressing the '0'
key.

Please review the attached patch to make sure there are no
unexpected side effects from this last minute fix.

Still expecting version 1.4.0 to be out next sunday... ;-)

Klaus
  

Patch

--- menuitems.c	2006/04/23 11:39:48	1.43
+++ menuitems.c	2006/04/25 15:59:02
@@ -80,10 +80,10 @@ 
        case kNone: break;
        case k0 ... k9:
             if (fresh) {
-               *value = 0;
+               newValue = 0;
                fresh = false;
                }
-            newValue = *value * 10 + (Key - k0);
+            newValue = newValue * 10 + (Key - k0);
             break;
        case kLeft: // TODO might want to increase the delta if repeated quickly?
             newValue = *value - 1;