From 1ddda0755b070ac916f54345c3ad2f7b4a4b80db Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 10 Jun 2017 23:02:24 +0300 Subject: TabDiveInformation.cpp: use lrint() for sac.mliter in updateData() Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- desktop-widgets/tab-widgets/TabDiveInformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp index d687cdcd7..419e73739 100644 --- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp +++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp @@ -67,7 +67,7 @@ void TabDiveInformation::updateData() continue; volumes.append(get_volume_string(gases[i], true)); if (duration[i]) { - sac.mliter = gases[i].mliter / (depth_to_atm(mean[i], &displayed_dive) * duration[i] / 60); + sac.mliter = lrint(gases[i].mliter / (depth_to_atm(mean[i], &displayed_dive) * duration[i] / 60)); SACs.append(get_volume_string(sac, true).append(tr("/min"))); } } -- cgit v1.2.3-70-g09d2