summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2014-10-10 14:36:52 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-10-10 14:36:52 +0900
commit4d9fdf4ebaf9ba009939a65419222c59ce5c12d0 (patch)
tree65c370ff3dd8198094468b11c5cb27ac26b5271f
parentcde012d2a03719d35f1c9283d6185866448b6da8 (diff)
elm_interface_scrollable: fix last page get api
Summary: First page's number is 0. So I changed '+' to '-'. Reviewers: seoz, jaehwan, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D1530
-rw-r--r--src/lib/elm_interface_scrollable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_interface_scrollable.c b/src/lib/elm_interface_scrollable.c
index c1793a70a..3c8db9229 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -4181,14 +4181,14 @@ _elm_interface_scrollable_last_page_get(Eo *obj EINA_UNUSED, Elm_Scrollable_Smar
4181 if (pagenumber_h) 4181 if (pagenumber_h)
4182 { 4182 {
4183 if (sid->pagesize_h > 0) 4183 if (sid->pagesize_h > 0)
4184 *pagenumber_h = cw / sid->pagesize_h + 1; 4184 *pagenumber_h = cw / sid->pagesize_h - 1;
4185 else 4185 else
4186 *pagenumber_h = 0; 4186 *pagenumber_h = 0;
4187 } 4187 }
4188 if (pagenumber_v) 4188 if (pagenumber_v)
4189 { 4189 {
4190 if (sid->pagesize_v > 0) 4190 if (sid->pagesize_v > 0)
4191 *pagenumber_v = ch / sid->pagesize_v + 1; 4191 *pagenumber_v = ch / sid->pagesize_v - 1;
4192 else 4192 else
4193 *pagenumber_v = 0; 4193 *pagenumber_v = 0;
4194 } 4194 }