efl_ui/table: handle case where table has no items

Summary:
CID 1399086
Depends on D10207

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10208
This commit is contained in:
Mike Blumenkrantz 2019-09-26 17:59:43 -04:00
parent b2165b8921
commit f7befea043
1 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,11 @@ _efl_ui_table_homogeneous_cell_init(Table_Calc *table_calc, Eina_Bool axis)
prev_cell = &cell_calc[i];
}
if (!index)
{
memset(table_calc, 0, sizeof(Table_Calc));
return;
}
if (prev_cell)
prev_cell->next = count;