diff --git a/src/blackgui/components/weathercomponent.cpp b/src/blackgui/components/weathercomponent.cpp index dbdfe9519d..2fe98afab0 100644 --- a/src/blackgui/components/weathercomponent.cpp +++ b/src/blackgui/components/weathercomponent.cpp @@ -254,7 +254,7 @@ namespace BlackGui::Components const CCoordinateGeodetic position = gridPoint.getPosition(); const double pressureAtMslHpa = gridPoint.getPressureAtMsl().value(CPressureUnit::hPa()); const double pressureAtMslInHg = gridPoint.getPressureAtMsl().value(CPressureUnit::inHg()); - const QString status = QStringLiteral("Weather Position: %1 %2\nPressure (MSL): %3 hPa / %4 inHg").arg(position.latitude().toWgs84(), position.longitude().toWgs84()).arg(pressureAtMslHpa).arg(pressureAtMslInHg); + const QString status = QStringLiteral("Weather Position: %1 %2\nPressure (MSL): %3 hPa / %4 inHg").arg(position.latitude().toWgs84(), position.longitude().toWgs84()).arg(pressureAtMslHpa, 0, 'f', 0).arg(pressureAtMslInHg, 0, 'f', 2); ui->lbl_Status->setText(status); }