From 8d2559463d50932343b86b6c83e1d6ae851cc7c4 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 3 Dec 2020 14:24:05 +0000 Subject: [PATCH] layout - properly handle raise/lower with next/prev in list check fixes pager layout sstacking problems i've noticed. @fix --- src/bin/e_layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_layout.c b/src/bin/e_layout.c index e742c48eb..5a193d288 100644 --- a/src/bin/e_layout.c +++ b/src/bin/e_layout.c @@ -212,7 +212,7 @@ e_layout_child_lower(Evas_Object *obj) li = evas_object_data_get(obj, "e_layout_data"); if (!li) return; - if ((!li->sd->items) || (!EINA_INLIST_GET(li)->next)) return; + if ((!li->sd->items) || (!EINA_INLIST_GET(li)->prev)) return; li->sd->items = eina_inlist_promote(li->sd->items, EINA_INLIST_GET(li)); evas_object_lower(obj); } @@ -224,7 +224,7 @@ e_layout_child_raise(Evas_Object *obj) li = evas_object_data_get(obj, "e_layout_data"); if (!li) return; - if ((!li->sd->items) || (!EINA_INLIST_GET(li)->prev)) return; + if ((!li->sd->items) || (!EINA_INLIST_GET(li)->next)) return; li->sd->items = eina_inlist_demote(li->sd->items, EINA_INLIST_GET(li)); evas_object_raise(obj); }