Permalink
Browse files

Correct page count in save browser

  • Loading branch information...
jacksonmj committed Dec 22, 2014
1 parent 3b09c4b commit 3ea2d8013dccf9639d47831b78e39e8d6d2ba1e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/search/SearchModel.h
@@ -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)));
}

0 comments on commit 3ea2d80

Please sign in to comment.