forked from enlightenment/efl
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:
parent
2e8f00c1ff
commit
0e41b59f6d
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue