forked from enlightenment/efl
efl ui text - check if string exists beofre using it...
don't segv.
This commit is contained in:
parent
bbd70d1c20
commit
66df2617bc
|
@ -2100,7 +2100,7 @@ _update_text_theme(Eo *obj, Efl_Ui_Text_Data *sd)
|
||||||
|
|
||||||
// color
|
// color
|
||||||
colorcode = edje_object_data_get(wd->resize_obj, "guide.style.color");
|
colorcode = edje_object_data_get(wd->resize_obj, "guide.style.color");
|
||||||
if (_format_color_parse(colorcode, strlen(colorcode), &r, &g, &b, &a))
|
if (colorcode && _format_color_parse(colorcode, strlen(colorcode), &r, &g, &b, &a))
|
||||||
{
|
{
|
||||||
efl_text_normal_color_set(sd->text_guide_obj, r, g, b, a);
|
efl_text_normal_color_set(sd->text_guide_obj, r, g, b, a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue