From: SubodhKumar Date: Mon, 26 Mar 2018 12:27:36 +0000 (+0530) Subject: widget: Fix eo resolve error X-Git-Tag: submit/tizen_4.0/20180412.064201~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06e11d43c91ae9090ceb24101be5c5ba1bb49e1b;p=platform%2Fupstream%2Felementary.git widget: Fix eo resolve error If the parent of the widget is not an widget class itself, eo thows error. In case of window which has no widget as parent gives this error. @tizen_fix Change-Id: I1f69447f5a24d1b580ec5cdb16fc0036cc0f6da9 Signed-off-by: SubodhKumar --- diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 85a6782..562bce2 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -6288,11 +6288,14 @@ _elm_widget_eo_base_constructor(Eo *obj, Elm_Widget_Smart_Data *sd EINA_UNUSED) eo_do(obj, elm_interface_atspi_accessible_role_set(ELM_ATSPI_ROLE_UNKNOWN)); /* TIZEN_ONLY(20161117): Inherit paragraph direction from widget parent */ - if (sd->paragraph_direction != evas_object_paragraph_direction_get(parent)) + if (eo_isa(parent, ELM_WIDGET_CLASS)) { - sd->paragraph_direction = evas_object_paragraph_direction_get(parent); - _elm_widget_evas_object_paragraph_direction_set_internal(obj, sd, sd->paragraph_direction); - eo_do_super(obj, MY_CLASS, evas_obj_paragraph_direction_set(sd->paragraph_direction)); + if (sd->paragraph_direction != evas_object_paragraph_direction_get(parent)) + { + sd->paragraph_direction = evas_object_paragraph_direction_get(parent); + _elm_widget_evas_object_paragraph_direction_set_internal(obj, sd, sd->paragraph_direction); + eo_do_super(obj, MY_CLASS, evas_obj_paragraph_direction_set(sd->paragraph_direction)); + } } /* END */