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
This commit is contained in:
Mike Blumenkrantz 2018-08-30 13:15:49 +09:00 committed by Hermet Park
parent 43d8c853aa
commit a75500b5b1
1 changed files with 1 additions and 0 deletions

View File

@ -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;