From 41c677ab282e1248fa6ec088d780859c1257fa14 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 31 Oct 2010 12:39:41 +0900 Subject: [PATCH] [elm_genlist.c] + Added parameter verification routine. + Fixed indentation. --- src/lib/elm_genlist.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index c01a48a..9226c10 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3991,8 +3991,8 @@ elm_genlist_item_next_get(const Elm_Genlist_Item *it) { while (it) { - it = (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->next); - if ((it) && (!it->delete_me)) break; + it = (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->next); + if ((it) && (!it->delete_me)) break; } return (Elm_Genlist_Item *)it; } @@ -4012,8 +4012,8 @@ elm_genlist_item_prev_get(const Elm_Genlist_Item *it) { while (it) { - it = (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->prev); - if ((it) && (!it->delete_me)) break; + it = (Elm_Genlist_Item *)(EINA_INLIST_GET(it)->prev); + if ((it) && (!it->delete_me)) break; } return (Elm_Genlist_Item *)it; } @@ -4611,6 +4611,7 @@ elm_genlist_item_object_get(const Elm_Genlist_Item *it) EAPI void elm_genlist_item_update(Elm_Genlist_Item *it) { + if (!it) return; if (!it->block) return; if (it->delete_me) return; it->mincalcd = EINA_FALSE; -- 2.7.4