edje_edit: text style should be able to set into NULL
authorVitalii Vorobiov <vi.vorobiov@samsung.com>
Tue, 7 Jun 2016 14:56:40 +0000 (17:56 +0300)
committerVitalii Vorobiov <vi.vorobiov@samsung.com>
Tue, 7 Jun 2016 14:59:15 +0000 (17:59 +0300)
@fix

src/lib/edje/edje_edit.c

index ca04f1d..bca60c2 100644 (file)
@@ -8453,14 +8453,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;