summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-12 11:58:57 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-12 11:58:57 -0400
commit04a73749171c4f0ea925b84e1beefa77342d62cd (patch)
tree23591b45630b1eb6c2631292622679814fd7f715 /qt-ui
parent7f60b2b0c61e6ef242399b593e83b40c74509652 (diff)
downloadsubsurface-04a73749171c4f0ea925b84e1beefa77342d62cd.tar.gz
Display the correct metric SAC rate in divelist
We were doing integer math by mistake. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/models.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 86773fd52..23f0758ce 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -930,7 +930,7 @@ QString DiveItem::displaySac() const
QString str;
if (get_units()->volume == units::LITER)
- str = QString::number(dive->sac / 1000, 'f', 1);
+ str = QString::number(dive->sac / 1000.0, 'f', 1);
else
str = QString::number(ml_to_cuft(dive->sac), 'f', 2);