summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_exact_model.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/efl_ui_exact_model.c')
-rw-r--r--src/lib/elementary/efl_ui_exact_model.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_exact_model.c b/src/lib/elementary/efl_ui_exact_model.c
index b44bd822fc..fac8298745 100644
--- a/src/lib/elementary/efl_ui_exact_model.c
+++ b/src/lib/elementary/efl_ui_exact_model.c
@@ -76,6 +76,7 @@ _efl_ui_exact_model_slot_compress(unsigned int index, Eina_List *compressed, uns
76 Eina_Binbuf *cbuf; 76 Eina_Binbuf *cbuf;
77 Eina_Binbuf *tbuf; 77 Eina_Binbuf *tbuf;
78 Eina_List *l = NULL; 78 Eina_List *l = NULL;
79 unsigned int i;
79 80
80 _efl_ui_exact_model_list_find(list_index, compressed, &l); 81 _efl_ui_exact_model_list_find(list_index, compressed, &l);
81 82
@@ -106,7 +107,10 @@ _efl_ui_exact_model_slot_compress(unsigned int index, Eina_List *compressed, uns
106 } 107 }
107 108
108 // Fill the list all the way to the needed index with buffer full of zero 109 // Fill the list all the way to the needed index with buffer full of zero
109 while (list_index) compressed = eina_list_append(compressed, z); 110 for (i = 0; i < list_index; i++)
111 {
112 compressed = eina_list_append(compressed, z);
113 }
110 l = eina_list_last(compressed); 114 l = eina_list_last(compressed);
111 } 115 }
112 116