forked from enlightenment/efl
edje: Edje_Edit - delete unnecessary check id's in edje_edit_part_restack_part_below(above).
Summary: In case when reorder part below or above part with id 0, function return EINA_FALSE. But part shoud restacked normaly. Reviewers: raster, seoz, cedric, Hermet, reutskiy.v.v Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1184 Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
This commit is contained in:
parent
de2536e892
commit
c037b3e80a
|
@ -3353,8 +3353,6 @@ edje_edit_part_restack_part_below(Evas_Object *obj, const char* part, const char
|
||||||
rp_below = _edje_real_part_get(ed, below);
|
rp_below = _edje_real_part_get(ed, below);
|
||||||
if (!rp_below) return EINA_FALSE;
|
if (!rp_below) return EINA_FALSE;
|
||||||
|
|
||||||
if (rp->part->id < 1) return EINA_FALSE;
|
|
||||||
if (rp_below->part->id < 1) return EINA_FALSE;
|
|
||||||
group = ed->collection;
|
group = ed->collection;
|
||||||
|
|
||||||
while (rp->part->id != (rp_below->part->id - 1))
|
while (rp->part->id != (rp_below->part->id - 1))
|
||||||
|
@ -3427,8 +3425,6 @@ edje_edit_part_restack_part_above(Evas_Object *obj, const char* part, const char
|
||||||
rp_above = _edje_real_part_get(ed, above);
|
rp_above = _edje_real_part_get(ed, above);
|
||||||
if (!rp_above) return EINA_FALSE;
|
if (!rp_above) return EINA_FALSE;
|
||||||
|
|
||||||
if (rp->part->id < 1) return EINA_FALSE;
|
|
||||||
if (rp_above->part->id < 1) return EINA_FALSE;
|
|
||||||
group = ed->collection;
|
group = ed->collection;
|
||||||
|
|
||||||
while (rp->part->id != rp_above->part->id + 1)
|
while (rp->part->id != rp_above->part->id + 1)
|
||||||
|
|
Loading…
Reference in New Issue