summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/NewStory/src/history_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index b495a3ac06..f6221fbbd8 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -521,7 +521,7 @@ void NewstoryListData::HitTotal(int yCurr, int yTotal)
while (i < totalCount && y > 0) {
auto *pItem = GetItem(i++);
if (!pItem->m_bLoaded) {
- i = (totalCount * yCurr) / yTotal;
+ i = totalCount * (double(yCurr) / double(yTotal));
y = 0;
break;
}