summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_table_layout.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-09-26 17:59:43 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-09-26 17:59:43 -0400
commitf7befea043c047c9c438700451e84f7c28923648 (patch)
tree548d151a7c28476083dc37fe6c1f63c94ab5c780 /src/lib/elementary/efl_ui_table_layout.c
parentb2165b89217829bf7350b3fa69e320128228a265 (diff)
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
Diffstat (limited to 'src/lib/elementary/efl_ui_table_layout.c')
-rw-r--r--src/lib/elementary/efl_ui_table_layout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_table_layout.c b/src/lib/elementary/efl_ui_table_layout.c
index a0307f5..4be616f 100644
--- a/src/lib/elementary/efl_ui_table_layout.c
+++ b/src/lib/elementary/efl_ui_table_layout.c
@@ -120,6 +120,11 @@ _efl_ui_table_homogeneous_cell_init(Table_Calc *table_calc, Eina_Bool axis)
120 120
121 prev_cell = &cell_calc[i]; 121 prev_cell = &cell_calc[i];
122 } 122 }
123 if (!index)
124 {
125 memset(table_calc, 0, sizeof(Table_Calc));
126 return;
127 }
123 if (prev_cell) 128 if (prev_cell)
124 prev_cell->next = count; 129 prev_cell->next = count;
125 130