summaryrefslogtreecommitdiffstats
path: root/qt-models/tankinfomodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/tankinfomodel.cpp')
-rw-r--r--qt-models/tankinfomodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/tankinfomodel.cpp b/qt-models/tankinfomodel.cpp
index 3e9e654bf..90b4f1195 100644
--- a/qt-models/tankinfomodel.cpp
+++ b/qt-models/tankinfomodel.cpp
@@ -62,7 +62,7 @@ QVariant TankInfoModel::data(const QModelIndex &index, int role) const
double bar = (info->psi) ? psi_to_bar(info->psi) : info->bar;
if (info->cuft && info->psi)
- ml = cuft_to_l(info->cuft) * 1000 / bar_to_atm(bar);
+ ml = lrint(cuft_to_l(info->cuft) * 1000 / bar_to_atm(bar));
switch (index.column()) {
case BAR: