Edje: Fix crash in E clock: invalid source string

This fixes on top of 49a27688b1, which
assumed somehow that table items had names, although that
might not be the case. In my situation, name = NULL and there
was a crash everytime I clicked on the clock widget.
This commit is contained in:
Jean-Philippe Andre 2016-04-26 12:27:50 +09:00
parent 62caefdf0e
commit 59ead67aa1
1 changed files with 2 additions and 1 deletions

View File

@ -2233,7 +2233,8 @@ _cb_signal_repeat(void *data, Evas_Object *obj, const char *sig, const char *sou
if (ed->parent && length_index)
{
new_src[length_parent++] = EDJE_PART_PATH_SEPARATOR_INDEXL;
if (pack_it->parent->part->type == EDJE_PART_TYPE_BOX)
if ((pack_it->parent->part->type == EDJE_PART_TYPE_BOX) ||
(!name && (pack_it->parent->part->type == EDJE_PART_TYPE_TABLE)))
length_parent += eina_convert_itoa(i, new_src + length_parent);
else
{