VDR 1.3.48: bug in cMenuEditIntItem
Commit Message
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
@@ -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;