forked from enlightenment/efl
efl_ui_layout: check part existence in text_set
Summary: fix T6931 Reviewers: bu5hm4n, cedric, segfaultxavi Reviewed By: bu5hm4n Subscribers: #reviewers, #committers Tags: #efl_widgets Maniphest Tasks: T6931 Differential Revision: https://phab.enlightenment.org/D7888
This commit is contained in:
parent
4628021fe5
commit
649433560b
|
@ -2741,6 +2741,7 @@ elm_layout_text_set(Eo *obj, const char *part, const char *text)
|
||||||
else if (!_elm_layout_part_aliasing_eval(obj, &part, EINA_TRUE))
|
else if (!_elm_layout_part_aliasing_eval(obj, &part, EINA_TRUE))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
|
if (!efl_layout_group_part_exist_get(obj, part)) return EINA_FALSE;
|
||||||
efl_text_set(efl_part(obj, part), text);
|
efl_text_set(efl_part(obj, part), text);
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue