From 859e9a91ce597b733419e81a7aedee728d9c0703 Mon Sep 17 00:00:00 2001 From: woochan lee Date: Mon, 26 Oct 2015 01:20:53 +0100 Subject: [PATCH] multibuttonentry: fix label packed many times in internal box. Summary: The Internal box can has a lot of label for child when user set text many times. Fix this wrong implement. It has to get only one label for child. @fix Test Plan: Call elm_object_text_set() many times for MBE. Check the label got a wrong geometry. Reviewers: Hermet, cedric Differential Revision: https://phab.enlightenment.org/D3133 Signed-off-by: Cedric BAIL --- legacy/elementary/src/lib/elc_multibuttonentry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/elementary/src/lib/elc_multibuttonentry.c b/legacy/elementary/src/lib/elc_multibuttonentry.c index e213234e9b..4df92c94ea 100644 --- a/legacy/elementary/src/lib/elc_multibuttonentry.c +++ b/legacy/elementary/src/lib/elc_multibuttonentry.c @@ -1193,6 +1193,8 @@ _label_set(Evas_Object *obj, } else { + if (sd->label_packed) + elm_box_unpack(sd->box, sd->label); sd->label_packed = EINA_TRUE; edje_object_size_min_calc(sd->label, &width, &height); evas_object_size_hint_min_set(sd->label, width, height);