nikawhite pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=bd8595a04c448eee8ddb62af198e8349e282821f

commit bd8595a04c448eee8ddb62af198e8349e282821f
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Jul 28 15:14:16 2016 +0300

    live_naviframe: do not SIGSEV on part_text_set (check NULL before text set)
    
    @fix
---
 src/bin/ui/live_view/elementary/live_naviframe.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/live_view/elementary/live_naviframe.c 
b/src/bin/ui/live_view/elementary/live_naviframe.c
index a27ae0c..a32856b 100644
--- a/src/bin/ui/live_view/elementary/live_naviframe.c
+++ b/src/bin/ui/live_view/elementary/live_naviframe.c
@@ -130,7 +130,8 @@ _on_naviframe_text_check(void *data __UNUSED__,
    if (item_current != item_main)
      elm_naviframe_item_pop(obj);
 
-   elm_object_part_text_set(obj, part->name, part->text_content);
+   if (part->text_content)
+     elm_object_part_text_set(obj, part->name, part->text_content);
 }
 
 static void
@@ -182,7 +183,7 @@ widget_naviframe_create(Evas_Object *parent, const Group 
*group)
 
    it = elm_naviframe_item_push(nf, _("Page 1"), NULL, NULL, NULL, 
item_style_name);
    elm_object_item_part_text_set(it, "subtitle", _("Subtitle 1"));
-   elm_object_item_part_text_set(it, "title", _("Main Page"));
+   elm_object_item_part_text_set(it, "title1", _("Main Page"));
    evas_object_data_set(nf, "main_page", it);
 
    evas_object_smart_callback_add(nf, SIGNAL_DEMO_SWALLOW_SET, 
_on_naviframe_swallow_check, NULL);

-- 


Reply via email to