summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-13 10:41:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-13 10:41:37 +0200
commit42a80413525ac415d7552e899796b2a30707b88e (patch)
treea9ee72bff5e0219eb521dfc47175686b2b07d90a /menuitems.c
parentf99b293de4fd9b901d36420859e0945023bdfea2 (diff)
downloadvdr-42a80413525ac415d7552e899796b2a30707b88e.tar.gz
vdr-42a80413525ac415d7552e899796b2a30707b88e.tar.bz2
Fixed a crash when pressing Left while at the first character of a cMenuEditStrItem
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 a900e4a8..bcfef6ea 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.51 2007/08/17 13:48:07 kls Exp $
+ * $Id: menuitems.c 1.52 2007/10/13 10:39:40 kls Exp $
*/
#include "menuitems.h"
@@ -499,9 +499,9 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key)
if (!insert || newchar)
pos--;
newchar = true;
+ if (!insert && Utf8is(alpha, valueUtf8[pos]))
+ uppercase = Utf8is(upper, valueUtf8[pos]);
}
- if (!insert && Utf8is(alpha, valueUtf8[pos]))
- uppercase = Utf8is(upper, valueUtf8[pos]);
break;
case kRight|k_Repeat:
case kRight: if (InEditMode())