summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/efl_ui_relative_layout.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_relative_layout.c b/src/lib/elementary/efl_ui_relative_layout.c
index a0814cebad..7e8b6f3c01 100644
--- a/src/lib/elementary/efl_ui_relative_layout.c
+++ b/src/lib/elementary/efl_ui_relative_layout.c
@@ -218,7 +218,15 @@ _child_chain_calc(Efl_Ui_Relative_Layout_Child *child, Eina_Bool axis)
218 // find head 218 // find head
219 head = child; 219 head = child;
220 while (head == head->calc.to[START]->calc.to[END]) 220 while (head == head->calc.to[START]->calc.to[END])
221 head = head->calc.to[START]; 221 {
222 head = head->calc.to[START];
223 if (head == child)
224 {
225 ERR("%c-axis circular dependency when calculating \"%s\"(%p).",
226 axis ? 'Y' : 'X', efl_class_name_get(child->obj), child->obj);
227 return EINA_TRUE;
228 }
229 }
222 230
223 //calculate weight_sum 231 //calculate weight_sum
224 aspect_type = !axis ? EFL_GFX_HINT_ASPECT_VERTICAL : EFL_GFX_HINT_ASPECT_HORIZONTAL; 232 aspect_type = !axis ? EFL_GFX_HINT_ASPECT_VERTICAL : EFL_GFX_HINT_ASPECT_HORIZONTAL;