edje_edit: return NULL if part has not style attribute

This commit is contained in:
Vyacheslav Reutskiy 2016-06-16 10:56:31 +03:00
parent 285c387ae2
commit 326d0246c8
1 changed files with 4 additions and 1 deletions

View File

@ -8456,7 +8456,10 @@ edje_edit_state_text_style_get(Evas_Object *obj, const char *part, const char *s
return NULL;
txt = (Edje_Part_Description_Text *)pd;
return eina_stringshare_add(txt->text.style.str);
if (txt->text.style.str)
return eina_stringshare_add(txt->text.style.str);
else
return NULL;
}
EAPI Eina_Bool