elm genlist: Use EINA_SAFETY_ON_TRUE_RETURN for nicely warn user.

SVN revision: 71528
This commit is contained in:
Daniel Juyung Seo 2012-05-30 04:57:29 +00:00
parent 10ac173c00
commit 2f1dfc108e
1 changed files with 2 additions and 1 deletions

View File

@ -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);