summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-25 16:04:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-25 16:04:55 +0200
commit754a4de85e7d4cc9363204eda9f2cd2723c2cf25 (patch)
tree85beeb5a49125a39a046f19bfc47d97ae0e448ec /menuitems.c
parentbf4f8e0da38b757dae9a8fef4e17cb23094d6e26 (diff)
downloadvdr-754a4de85e7d4cc9363204eda9f2cd2723c2cf25.tar.gz
vdr-754a4de85e7d4cc9363204eda9f2cd2723c2cf25.tar.bz2
Fixed entering '0' in a cMenuEditIntItem
Diffstat (limited to 'menuitems.c')
-rw-r--r--menuitems.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menuitems.c b/menuitems.c
index ef7cccc3..1bca4873 100644
--- a/menuitems.c
+++ b/menuitems.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* 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"
@@ -80,10 +80,10 @@ eOSState cMenuEditIntItem::ProcessKey(eKeys Key)
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;