summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_table_layout.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-07 01:02:09 +0000
committerCedric BAIL <cedric.bail@free.fr>2019-03-07 09:58:58 -0800
commitb857fa742084663cfb378596e3ae1455bbd24b67 (patch)
tree8e0ad1a3a9537325671a78401376792215376e8e /src/lib/elementary/efl_ui_table_layout.c
parentf1d5b8a40ca7017e5c77c2b55e8df1e06eb78598 (diff)
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
Diffstat (limited to 'src/lib/elementary/efl_ui_table_layout.c')
-rw-r--r--src/lib/elementary/efl_ui_table_layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_table_layout.c b/src/lib/elementary/efl_ui_table_layout.c
index f017b33..26c288f 100644
--- a/src/lib/elementary/efl_ui_table_layout.c
+++ b/src/lib/elementary/efl_ui_table_layout.c
@@ -152,6 +152,7 @@ _efl_ui_table_regular_cell_init(Table_Calc *table_calc, Eina_Bool axis)
152 for (i = 0; i < count; i++) 152 for (i = 0; i < count; i++)
153 { 153 {
154 if (!cell_calc[i].occupied) continue; 154 if (!cell_calc[i].occupied) continue;
155 else if (i && cell_calc[0].next == 0) cell_calc[0].next = i;
155 156
156 cell_calc[i].index = index++; 157 cell_calc[i].index = index++;
157 want += cell_calc[i].space; 158 want += cell_calc[i].space;