diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-12-03 14:24:05 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2020-12-03 14:24:05 +0000 |
commit | 8d2559463d50932343b86b6c83e1d6ae851cc7c4 (patch) | |
tree | 839b47f74445304a3f3ca28db8079324b0e0a63d | |
parent | 5a97e2c4e770d7108c481256b8be741854be0ac7 (diff) | |
download | enlightenment-8d2559463d50932343b86b6c83e1d6ae851cc7c4.tar.gz |
layout - properly handle raise/lower with next/prev in list check
fixes pager layout sstacking problems i've noticed.
@fix
-rw-r--r-- | src/bin/e_layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/e_layout.c b/src/bin/e_layout.c index e742c48eb3..5a193d288a 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); } |