1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed entering '0' in a cMenuEditIntItem

This commit is contained in:
Klaus Schmidinger 2006-04-25 16:04:55 +02:00
parent bf4f8e0da3
commit 754a4de85e
3 changed files with 5 additions and 3 deletions

View File

@ -439,6 +439,7 @@ Mirko D
for reporting a problem with inconsistent channel and timer lists for reporting a problem with inconsistent channel and timer lists
for making the "Play" key in live viewing mode resume a previous replay session for making the "Play" key in live viewing mode resume a previous replay session
for suggesting to allow defining key macros for all non-modeless keys for suggesting to allow defining key macros for all non-modeless keys
for reporting a bug in entering '0' in a cMenuEditIntItem
Michael Rakowski <mrak@gmx.de> Michael Rakowski <mrak@gmx.de>
for translating OSD texts to the Polish language for translating OSD texts to the Polish language

View File

@ -4656,3 +4656,4 @@ Video Disk Recorder Revision History
Oliver Endriss; thanks also to Udo Richter for a shorter version of the 'sed' Oliver Endriss; thanks also to Udo Richter for a shorter version of the 'sed'
expression). expression).
- Fixed broken APIVERSION extraction line in 'newplugin' (thanks to Oliver Endriss). - Fixed broken APIVERSION extraction line in 'newplugin' (thanks to Oliver Endriss).
- Fixed entering '0' in a cMenuEditIntItem (reported by Mirko Dölle).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menuitems.c 1.43 2006/04/23 11:39:48 kls Exp $ * $Id: menuitems.c 1.44 2006/04/25 15:59:02 kls Exp $
*/ */
#include "menuitems.h" #include "menuitems.h"
@ -80,10 +80,10 @@ eOSState cMenuEditIntItem::ProcessKey(eKeys Key)
case kNone: break; case kNone: break;
case k0 ... k9: case k0 ... k9:
if (fresh) { if (fresh) {
*value = 0; newValue = 0;
fresh = false; fresh = false;
} }
newValue = *value * 10 + (Key - k0); newValue = newValue * 10 + (Key - k0);
break; break;
case kLeft: // TODO might want to increase the delta if repeated quickly? case kLeft: // TODO might want to increase the delta if repeated quickly?
newValue = *value - 1; newValue = *value - 1;