diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-12 11:58:57 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-12 11:58:57 -0400 |
commit | 04a73749171c4f0ea925b84e1beefa77342d62cd (patch) | |
tree | 23591b45630b1eb6c2631292622679814fd7f715 /qt-ui | |
parent | 7f60b2b0c61e6ef242399b593e83b40c74509652 (diff) | |
download | subsurface-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.cpp | 2 |
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); |