From 47dc96398310599f928f5cbbe75f34fa422dd653 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 29 May 2012 09:04:42 +0000 Subject: [PATCH] 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 --- legacy/elementary/src/lib/elm_genlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index 4efbf4eba3..48fab79bf1 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -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);