Display the correct metric SAC rate in divelist

We were doing integer math by mistake.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-06-12 11:58:57 -04:00
parent 7f60b2b0c6
commit 04a7374917

View file

@ -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);