fix case where user can specify item block size < 1; this also reveals an api error since the param here should obviously be a uint.

SVN revision: 71498
This commit is contained in:
Mike Blumenkrantz 2012-05-29 09:04:42 +00:00
parent 40a5fd42aa
commit 47dc963983
1 changed files with 1 additions and 0 deletions

View File

@ -5447,6 +5447,7 @@ 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;
wd->max_items_per_block = count;
wd->item_cache_max = wd->max_items_per_block * 2;
_item_cache_clean(wd);