From 49a27688b1e0175071466b8a01a2b1630c932497 Mon Sep 17 00:00:00 2001 From: Vyacheslav Reutskiy Date: Mon, 25 Apr 2016 07:30:11 +0300 Subject: [PATCH] edje: fix the source string for table item If the table item has a name, posible case when item name length, with index, will be 12. The 12 is predefined length for box index. Quote Cedric In a box, the index is one dimension, one int, thus the length of it (from int to string) will always fit inside 12 bytes. That's where this 12 comes from. That's also how the unique name of that item is defined. This commit separate the items name generation by part type, it will be more correctly. @fix --- src/lib/edje/edje_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c index 87553ecda4..16bc5ee935 100644 --- a/src/lib/edje/edje_load.c +++ b/src/lib/edje/edje_load.c @@ -2232,7 +2232,7 @@ _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 (length_index == 12) + if (pack_it->parent->part->type == EDJE_PART_TYPE_BOX) length_parent += eina_convert_itoa(i, new_src + length_parent); else {