summaryrefslogtreecommitdiff
path: root/src/search/SearchModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/search/SearchModel.h')
-rw-r--r--src/search/SearchModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search/SearchModel.h b/src/search/SearchModel.h
index a2ea5b7..c894090 100644
--- a/src/search/SearchModel.h
+++ b/src/search/SearchModel.h
@@ -61,7 +61,7 @@ public:
vector<SaveInfo*> GetSaveList();
vector<pair<string, int> > GetTagList();
string GetLastError() { return lastError; }
- int GetPageCount() { return max(1, (int)(ceil(resultCount/16))); }
+ int GetPageCount() { return max(1, (int)(ceil(resultCount/16.0f))); }
int GetPageNum() { return currentPage; }
std::string GetLastQuery() { return lastQuery; }
void SetSort(string sort) { if(!updateSaveListWorking) { currentSort = sort; } notifySortChanged(); }