From 59465b85f6484dedfa2ba9632489ca26f354419f Mon Sep 17 00:00:00 2001 From: Jocke Date: Thu, 12 Jul 2018 10:41:32 +0200 Subject: Don't show decimals on pressures As per discussion in #1460 there is no point in showing decimal values for pressures in the equipment tab on desktop or in the dive edit view on mobile. Signed-off-by: Joakim Bygdell --- core/qthelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 8b770f6b2..3ca48c480 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -652,7 +652,7 @@ QString get_pressure_string(pressure_t pressure, bool showunit) { if (prefs.units.pressure == units::BAR) { double bar = pressure.mbar / 1000.0; - return QString("%L1%2").arg(bar, 0, 'f', 1).arg(showunit ? gettextFromC::tr("bar") : QString()); + return QString("%L1%2").arg(bar, 0, 'f', 0).arg(showunit ? gettextFromC::tr("bar") : QString()); } else { double psi = mbar_to_PSI(pressure.mbar); return QString("%L1%2").arg(psi, 0, 'f', 0).arg(showunit ? gettextFromC::tr("psi") : QString()); -- cgit v1.2.3-70-g09d2