forked from enlightenment/efl
elm genlist: Use EINA_SAFETY_ON_TRUE_RETURN for nicely warn user.
SVN revision: 71528
This commit is contained in:
parent
10ac173c00
commit
2f1dfc108e
|
@ -5459,7 +5459,8 @@ elm_genlist_block_count_set(Evas_Object *obj,
|
|||
ELM_CHECK_WIDTYPE(obj, widtype);
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return;
|
||||
if (count < 1) return;
|
||||
EINA_SAFETY_ON_TRUE_RETURN(count < 1);
|
||||
|
||||
wd->max_items_per_block = count;
|
||||
wd->item_cache_max = wd->max_items_per_block * 2;
|
||||
_item_cache_clean(wd);
|
||||
|
|
Loading…
Reference in New Issue