efl_ui_stack: Partially Revert "efl_ui_stack: remove unnecessary condition of EINA_INLIST_CONTAINER_GET return value"

This partially reverts commit 820dcb9cd9.

top_cd can be NULL when cd->stack is NULL.

Thanks to bu5hm4n for reporting.
Differential Revision: https://phab.enlightenment.org/D7116
This commit is contained in:
Yeongjong Lee 2018-09-27 07:33:37 +00:00 committed by Marcel Hollerbach
parent 2e8f00c1ff
commit 0e41b59f6d
1 changed files with 53 additions and 50 deletions

View File

@ -163,6 +163,8 @@ _efl_ui_stack_push(Eo *obj, Efl_Ui_Stack_Data *pd, Eo *content)
/* Apply transition to top content.
* Hide top content with animation. */
if (top_cd)
{
Eo *top_content = top_cd->content;
Efl_Canvas_Animation *orig_hide_anim =
@ -224,6 +226,7 @@ _efl_ui_stack_push(Eo *obj, Efl_Ui_Stack_Data *pd, Eo *content)
efl_gfx_entity_visible_set(top_content, EINA_FALSE);
}
}
/* Prepare transition for new content.
* Hide new content without animation. */