eunue pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b2a0db1d1bce0728e2d152ca5ec9fbd4b5f4aa66

commit b2a0db1d1bce0728e2d152ca5ec9fbd4b5f4aa66
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Wed Jan 23 20:52:07 2019 +0900

    efl_ui_pager: add missing condition in current page set function
---
 src/lib/elementary/efl_ui_pager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_pager.c 
b/src/lib/elementary/efl_ui_pager.c
index b28ccb5138..c9df2f7317 100644
--- a/src/lib/elementary/efl_ui_pager.c
+++ b/src/lib/elementary/efl_ui_pager.c
@@ -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;

-- 


Reply via email to