From 04a73749171c4f0ea925b84e1beefa77342d62cd Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 12 Jun 2013 11:58:57 -0400 Subject: [PATCH] Display the correct metric SAC rate in divelist We were doing integer math by mistake. Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);