summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
Diffstat (limited to 'menuitems.c')
-rw-r--r--menuitems.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/menuitems.c b/menuitems.c
index a900e4a..732aea2 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.53 2007/10/13 12:05:37 kls Exp $
*/
#include "menuitems.h"
@@ -302,11 +302,11 @@ void cMenuEditStrItem::LeaveEditMode(bool SaveValue)
stripspace(value);
}
lengthUtf8 = 0;
- delete valueUtf8;
+ delete[] valueUtf8;
valueUtf8 = NULL;
- delete allowedUtf8;
+ delete[] allowedUtf8;
allowedUtf8 = NULL;
- delete charMapUtf8;
+ delete[] charMapUtf8;
charMapUtf8 = NULL;
pos = -1;
offset = 0;
@@ -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())