Correct page count in save browser
This commit is contained in:
parent
3b09c4bdbc
commit
3ea2d8013d
@ -64,7 +64,7 @@ public:
|
|||||||
int GetPageCount()
|
int GetPageCount()
|
||||||
{
|
{
|
||||||
if (!showOwn && !showFavourite && currentSort == "best" && lastQuery == "")
|
if (!showOwn && !showFavourite && currentSort == "best" && lastQuery == "")
|
||||||
return max(1, (int)(ceil((resultCount+5)/20.0f))+1); //add one for front page (front page saves are repeated twice)
|
return max(1, (int)(ceil(resultCount/20.0f))+1); //add one for front page (front page saves are repeated twice)
|
||||||
else
|
else
|
||||||
return max(1, (int)(ceil(resultCount/20.0f)));
|
return max(1, (int)(ceil(resultCount/20.0f)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user