efl_ui_pager: add a missing condition
authorJaeun Choi <jaeun12.choi@samsung.com>
Fri, 22 Mar 2019 08:51:17 +0000 (17:51 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Apr 2019 04:21:10 +0000 (13:21 +0900)
src/lib/elementary/efl_ui_pager.c

index 0511694..8c65dc6 100644 (file)
@@ -498,7 +498,7 @@ _efl_ui_pager_efl_pack_linear_pack_at(Eo *obj,
 {
    if (!EINA_DBL_EQ(pd->curr.pos, 0.0)) return EINA_FALSE;
 
-   if (index > pd->cnt)
+   if ((index > pd->cnt) || (index < 0))
      {
         return EINA_FALSE;
      }