aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-04-12 09:12:51 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-12 09:15:11 +0200
commit48c27364fce82e2bb7743d2e4bd5d29863c7f57d (patch)
treec4d9100e47545070b8599c224a6b75f7c98760fc
parentefl_ui_widget: Fix disabled set calling without meaning. (diff)
downloadefl-48c27364fce82e2bb7743d2e4bd5d29863c7f57d.tar.gz
efl_ui_widget: avoid calling null parent
Summary: This will fix unnecessary warnings on P280. Thanks to segfaultxavi for reporting. ref https://phab.enlightenment.org/T7796 Reviewers: zmike, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: https://phab.enlightenment.org/T7796 Differential Revision: https://phab.enlightenment.org/D8599
-rw-r--r--src/lib/elementary/efl_ui_widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c
index c56990f8b3..99da93aa3b 100644
--- a/src/lib/elementary/efl_ui_widget.c
+++ b/src/lib/elementary/efl_ui_widget.c
@@ -1421,7 +1421,6 @@ _efl_ui_widget_widget_parent_set(Eo *obj, Elm_Widget_Smart_Data *pd, Efl_Ui_Widg
*/
double scale, prev_scale = efl_gfx_entity_scale_get(obj);
Elm_Theme *th, *prev_th = elm_widget_theme_get(obj);
- Eina_Bool mirrored, pmirrored = efl_ui_mirrored_get(parent);
int disabled_delta = pd->disabled - (pd->parent_obj ? _disabled_counter_get(pd->parent_obj) : 0);
old_parent = pd->parent_obj;
@@ -1430,6 +1429,7 @@ _efl_ui_widget_widget_parent_set(Eo *obj, Elm_Widget_Smart_Data *pd, Efl_Ui_Widg
// now lets sync up all states
if (pd->parent_obj)
{
+ Eina_Bool mirrored, pmirrored = efl_ui_mirrored_get(pd->parent_obj);
scale = efl_gfx_entity_scale_get(obj);
th = elm_widget_theme_get(obj);
mirrored = efl_ui_mirrored_get(obj);