summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-01-05 22:17:12 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-01-05 22:17:12 +0900
commit527e6468887e92e539c048dd7b9a42f5af871076 (patch)
tree68e0b520d4466d6892b6eb9018d480ad9ed12a6d
parent692e28fe74bed71b34de863f32384f7d2076c9ee (diff)
downloadelementary-527e6468887e92e539c048dd7b9a42f5af871076.tar.gz
genlist: keep the item class as given argument.
-rw-r--r--src/lib/elm_genlist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 2c938517e..3b94efbba 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -6904,11 +6904,10 @@ _elm_genlist_item_item_class_update(Eo *eo_it, Elm_Gen_Item *it,
const Elm_Genlist_Item_Class *itc)
{
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it);
-
- if (!it->item->block) return;
EINA_SAFETY_ON_NULL_RETURN(itc);
- if (it->generation < GL_IT(it)->wsd->generation) return;
it->itc = itc;
+ if (!it->item->block) return;
+ if (it->generation < GL_IT(it)->wsd->generation) return;
it->item->nocache_once = EINA_TRUE;
ELM_SAFE_FREE(it->texts, elm_widget_stringlist_free);