efl_ui_pager: add missing condition in current page set function

This commit is contained in:
Jaeun Choi 2019-01-23 20:52:07 +09:00
parent bd5ac14411
commit b2a0db1d1b
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ _efl_ui_pager_current_page_set(Eo *obj,
efl_event_callback_del(obj, EFL_EVENT_ANIMATOR_TICK, _mouse_up_animation, pd);
efl_event_callback_del(obj, EFL_EVENT_ANIMATOR_TICK, _page_set_animation, pd);
if (index >= pd->cnt)
if ((index < 0) || (index > (pd->cnt - 1)))
{
ERR("page set fail");
return;