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 16:56:42 +0900
commit71d4e21fcb9e44216993b050c727f28cd5c780df (patch)
tree0a052b509b44e934c7d0a43212c171d8aba533bd
parent4e9bde716e49ecae35eae89d4cf15a54a5ece95f (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 7a43d4cee..d37b062ed 100644
--- a/src/lib/elm_interface_scrollable.c
+++ b/src/lib/elm_interface_scrollable.c
@@ -4182,14 +4182,14 @@ _elm_interface_scrollable_last_page_get(Eo *obj EINA_UNUSED, Elm_Scrollable_Smar
4182 if (pagenumber_h) 4182 if (pagenumber_h)
4183 { 4183 {
4184 if (sid->pagesize_h > 0) 4184 if (sid->pagesize_h > 0)
4185 *pagenumber_h = cw / sid->pagesize_h + 1; 4185 *pagenumber_h = cw / sid->pagesize_h - 1;
4186 else 4186 else
4187 *pagenumber_h = 0; 4187 *pagenumber_h = 0;
4188 } 4188 }
4189 if (pagenumber_v) 4189 if (pagenumber_v)
4190 { 4190 {
4191 if (sid->pagesize_v > 0) 4191 if (sid->pagesize_v > 0)
4192 *pagenumber_v = ch / sid->pagesize_v + 1; 4192 *pagenumber_v = ch / sid->pagesize_v - 1;
4193 else 4193 else
4194 *pagenumber_v = 0; 4194 *pagenumber_v = 0;
4195 } 4195 }