From a75500b5b10ee006ab44d66c90a06c6ad2c09c52 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 30 Aug 2018 13:15:49 +0900 Subject: [PATCH] efl_ui/layout: check finalized state before completing sizing_eval call Summary: this should reduce the work required to silence errors during object construction by avoiding the most common cause of such errors ref D6830 Reviewers: Hermet, devilhorns Reviewed By: Hermet, devilhorns Subscribers: devilhorns, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6921 --- src/lib/elementary/efl_ui_layout_object.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/efl_ui_layout_object.c b/src/lib/elementary/efl_ui_layout_object.c index 806016bb12..e95af94338 100644 --- a/src/lib/elementary/efl_ui_layout_object.c +++ b/src/lib/elementary/efl_ui_layout_object.c @@ -1701,6 +1701,7 @@ _efl_ui_layout_object_efl_layout_group_part_exist_get(const Eo *obj, Efl_Ui_Layo static void _elm_layout_sizing_eval(Eo *obj, Efl_Ui_Layout_Object_Data *sd) { + if (!efl_finalized_get(obj)) return; if (sd->frozen) return; if (sd->needs_size_calc) return; sd->needs_size_calc = EINA_TRUE;