mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: fix precision of total weight displayed
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
140624918c
commit
a74175324a
1 changed files with 2 additions and 2 deletions
|
@ -734,10 +734,10 @@ QString QMLManager::getWeights(const QString& diveId)
|
|||
weight += d->weightsystem[i].weight.grams;
|
||||
|
||||
if (informational_prefs.unit_system == IMPERIAL){
|
||||
weights = QString::number(grams_to_lbs(weight)) + " lbs";
|
||||
weights = QString::number(grams_to_lbs(weight), 'f', 1) + " lbs";
|
||||
}
|
||||
else {
|
||||
weights = QString::number(weight/1000) + " kg";
|
||||
weights = QString::number(weight/1000, 'f', 1) + " kg";
|
||||
}
|
||||
}
|
||||
return weights;
|
||||
|
|
Loading…
Add table
Reference in a new issue