furrymyad pushed a commit to branch efl-1.16. http://git.enlightenment.org/core/efl.git/commit/?id=3ffcea6578781a0e366d5d75b20ae57224277445
commit 3ffcea6578781a0e366d5d75b20ae57224277445 Author: Vitalii Vorobiov <[email protected]> Date: Tue Jun 7 17:56:40 2016 +0300 edje_edit: text style should be able to set into NULL @fix --- src/lib/edje/edje_edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c index 654535f..cc73685 100644 --- a/src/lib/edje/edje_edit.c +++ b/src/lib/edje/edje_edit.c @@ -8124,14 +8124,13 @@ edje_edit_state_text_style_set(Evas_Object *obj, const char *part, const char *s Edje_Part_Description_Text *txt; GET_PD_OR_RETURN(EINA_FALSE); - if (!style) return EINA_FALSE; if ((rp->part->type != EDJE_PART_TYPE_TEXT) && (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK)) return EINA_FALSE; txt = (Edje_Part_Description_Text *)pd; - txt->text.style.str = eina_stringshare_add(style); + _edje_if_string_replace(ed, &txt->text.style.str, style); edje_object_calc_force(obj); return EINA_TRUE; --
