Skip to content
Snippets Groups Projects
Commit 092f759d authored by deuce's avatar deuce
Browse files

Fix firstpage sliding.

parent 0a845cd4
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ while(currpage>lastpage) {
/* Try adjust so currpage is in the middle of firstpage and lastpage */
lcount=0;
while(currpage>firstpage+(max_pages/2) && lastpage<total_pages) {
while(currpage>firstpage+(max_pages/2) && lastpage<(total_pages-1)) {
lcount++;
firstpage++;
lastpage=firstpage+max_pages-1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment