cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=067c9afa4e138c2477e513104a3ab5f3977a062b

commit 067c9afa4e138c2477e513104a3ab5f3977a062b
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Mar 13 12:38:10 2018 -0400

    elm_gengrid: do not zero item cache if object is not finalized
    
    this is a no-op case which causes unnecessary errors
    
    Signed-off-by: Mike Blumenkrantz <zm...@osg.samsung.com>
---
 src/lib/elementary/elm_gengrid.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index 05a83a2b33..2659ff0b22 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -3552,7 +3552,8 @@ _mirrored_set(Evas_Object *obj,
 
    ELM_GENGRID_DATA_GET(obj, sd);
 
-   _item_cache_zero(sd);
+   if (efl_finalized_get(sd->obj))
+     _item_cache_zero(sd);
    efl_ui_mirrored_set(efl_super(obj, MY_CLASS), rtl);
 
    if (!sd->items) return;

-- 


Reply via email to