From: Yeongjong Lee Date: Wed, 9 Jan 2019 17:44:50 +0000 (-0500) Subject: efl_ui_text: remove duplicated empty string initialization X-Git-Tag: submit/tizen/20190116.045417~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e054a87d4e54a777032f06ac6fca8d8701759a2f;p=platform%2Fupstream%2Fefl.git efl_ui_text: remove duplicated empty string initialization Summary: string of text_obj is already initialized in evas_object_textblock_init. also, this patch fixes text_set bug. Test Plan: ``` efl_add(EFL_UI_TEXT_CLASS, parent, efl_text_set(efl_added, "string")); ``` or elementary_test -to 'efl.ui.slider' Reviewers: herdsman, zmike Reviewed By: zmike Subscribers: zmike, segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7561 --- diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index b3761e0..000ba0e 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c @@ -2168,7 +2168,6 @@ _efl_ui_text_efl_object_finalize(Eo *obj, //efl_text_font_set(sd->text_obj, "Sans", 12); sd->single_line = !efl_text_multiline_get(sd->text_obj); - efl_text_set(sd->text_obj, ""); efl_pack_table(sd->text_table, sd->text_obj, 0, 0, 1, 1); efl_pack_table(sd->text_table, sd->text_guide_obj, 0, 0, 1, 1);