ui.table: fix infinite loop when initializing calc data

infinite loop if first cell is empty.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D8170
This commit is contained in:
Yeongjong Lee 2019-03-07 01:02:09 +00:00 committed by Cedric BAIL
parent f1d5b8a40c
commit b857fa7420
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ _efl_ui_table_regular_cell_init(Table_Calc *table_calc, Eina_Bool axis)
for (i = 0; i < count; i++)
{
if (!cell_calc[i].occupied) continue;
else if (i && cell_calc[0].next == 0) cell_calc[0].next = i;
cell_calc[i].index = index++;
want += cell_calc[i].space;