mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7f60b2b0c6
commit
04a7374917
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue