From e29154a03b44f5078a8dca563eb4164fb1282cfa Mon Sep 17 00:00:00 2001 From: marschap Date: Sat, 12 Mar 2005 22:31:20 +0000 Subject: [PATCH] use the correct union elements --- server/menuitem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/menuitem.c b/server/menuitem.c index 15fdc48..565323a 100644 --- a/server/menuitem.c +++ b/server/menuitem.c @@ -934,7 +934,7 @@ MenuResult menuitem_process_input_alpha (MenuItem *item, MenuToken token, char * if (pos >= item->data.alpha.maxlength) { /* We're not allowed to add anything anymore */ item->data.alpha.error_code = 2; - item->data.numeric.edit_pos = 0; + item->data.alpha.edit_pos = 0; return MENURESULT_NONE; } if (str[pos] == 0) { @@ -955,7 +955,7 @@ MenuResult menuitem_process_input_alpha (MenuItem *item, MenuToken token, char * if (pos >= item->data.alpha.maxlength) { /* We're not allowed to add anything anymore */ item->data.alpha.error_code = 2; - item->data.numeric.edit_pos = 0; + item->data.alpha.edit_pos = 0; return MENURESULT_NONE; } if (str[pos] == 0) { @@ -979,7 +979,7 @@ MenuResult menuitem_process_input_alpha (MenuItem *item, MenuToken token, char * if (pos >= item->data.alpha.maxlength) { /* We're not allowed to add anything anymore */ item->data.alpha.error_code = 2; - item->data.numeric.edit_pos = 0; + item->data.alpha.edit_pos = 0; return MENURESULT_NONE; } /* proces other keys */