elementary/elm_entry.c : Filter_accept should consider meanless tags and should not remove it. Thanks YoungBok Shin.

This commit is contained in:
WooHyun Jung 2013-05-06 15:51:54 +09:00
parent 80c2c653a2
commit 350fa0366a
1 changed files with 9 additions and 2 deletions

View File

@ -4331,13 +4331,20 @@ elm_entry_filter_accept_set(void *data,
if (read_char == ';')
{
char *tag;
int utf8;
tag = malloc(read_idx - last_read_idx + 1);
if (tag)
{
strncpy(tag, (*text) + last_read_idx, read_idx - last_read_idx);
tag[read_idx - last_read_idx] = 0;
read_char = *(elm_entry_markup_to_utf8(tag));
tag[read_idx - last_read_idx] = 0;
utf8 = *(elm_entry_markup_to_utf8(tag));
free(tag);
if (!utf8)
{
in_set = EINA_FALSE;
goto inserting;
}
read_char = utf8;
}
}
}