Skip to content

Commit

Permalink
Correct page count in save browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonmj committed Dec 22, 2014
1 parent 3b09c4b commit 3ea2d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/search/SearchModel.h
Expand Up @@ -64,7 +64,7 @@ class SearchModel
int GetPageCount()
{
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
return max(1, (int)(ceil(resultCount/20.0f)));
}
Expand Down

0 comments on commit 3ea2d80

Please sign in to comment.