diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2015-01-05 22:17:12 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-01-05 22:17:12 +0900 |
commit | 527e6468887e92e539c048dd7b9a42f5af871076 (patch) | |
tree | 68e0b520d4466d6892b6eb9018d480ad9ed12a6d | |
parent | 692e28fe74bed71b34de863f32384f7d2076c9ee (diff) | |
download | elementary-527e6468887e92e539c048dd7b9a42f5af871076.tar.gz |
genlist: keep the item class as given argument.
-rw-r--r-- | src/lib/elm_genlist.c | 5 |
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); |