edje/edje_entry : Fix a bug. Wrong calculation for text length.

SVN revision: 66596
This commit is contained in:
WooHyun Jung 2011-12-28 10:27:06 +00:00
parent b33c67ff9f
commit 303b104025
1 changed files with 2 additions and 2 deletions

View File

@ -3050,7 +3050,7 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, int type __UNUSED__, void *
{
eina_strbuf_append(buf, "<preedit>");
eina_strbuf_append_n(buf, preedit_string + attr->start_index,
attr->end_index - attr->start_index + 1);
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit>");
}
@ -3059,7 +3059,7 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, int type __UNUSED__, void *
{
eina_strbuf_append(buf, "<preedit_sel>");
eina_strbuf_append_n(buf, preedit_string + attr->start_index,
attr->end_index - attr->start_index + 1);
attr->end_index - attr->start_index);
eina_strbuf_append(buf, "</preedit_sel>");
}
}