discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=691a6d4143b033406073531dd8d9b3d9d6fb41a7

commit 691a6d4143b033406073531dd8d9b3d9d6fb41a7
Author: zmike <[email protected]>
Date:   Fri Mar 14 14:15:22 2014 -0400

    gengrid clear should do nothing if there are no items
---
 src/lib/elm_gengrid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 9c09310..b4775d1 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -2223,6 +2223,7 @@ _elm_gengrid_clear(Evas_Object *obj,
    Eina_Inlist *next, *l;
 
    ELM_GENGRID_DATA_GET(obj, sd);
+   if (!sd->items) return;
 
    if (!standby) sd->generation++;
 

-- 


Reply via email to