diff --git a/src/gui/search/SearchModel.h b/src/gui/search/SearchModel.h index 030c37e8c..412806c45 100644 --- a/src/gui/search/SearchModel.h +++ b/src/gui/search/SearchModel.h @@ -64,7 +64,7 @@ public: 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))); }