elementary/datetime : Fix a bug. elm_layout_content_set can delete

existing object which will be swallowed again in another part.


SVN revision: 71089
This commit is contained in:
WooHyun Jung 2012-05-15 04:44:14 +00:00
parent d9788a6249
commit 18a24203bd
1 changed files with 5 additions and 1 deletions

View File

@ -301,7 +301,11 @@ _field_list_arrange(Evas_Object *obj)
snprintf(buf, sizeof(buf), EDC_PART_FIELD_STR, field->location);
if (field->visible && field->fmt_exist)
elm_layout_content_set(obj, buf, field->item_obj);
{
if (elm_layout_content_get(obj, buf))
elm_layout_content_unset(obj, buf);
elm_layout_content_set(obj, buf, field->item_obj);
}
else
evas_object_hide(elm_layout_content_unset(obj, buf));
}