From d55a3af1146afccfd6a6637f0c7ae0bf54d5f3d0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Dec 2023 19:57:32 +0300 Subject: =?UTF-8?q?fixes=20#4066=20(NewStory:=20=D0=9D=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D0=B0=20?= =?UTF-8?q?=D1=81=D0=BE=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=D0=B8=D0=BD?= =?UTF-8?q?=D0=B3=D0=BE=D0=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3