summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/diveplanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r--desktop-widgets/diveplanner.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index 394898112..4fc38cd2a 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/diveplanner.cpp
@@ -400,12 +400,12 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f)
void PlannerSettingsWidget::updateUnitsUI()
{
- ui.ascRate75->setValue(rint(prefs.ascrate75 / UNIT_FACTOR));
- ui.ascRate50->setValue(rint(prefs.ascrate50 / UNIT_FACTOR));
- ui.ascRateStops->setValue(rint(prefs.ascratestops / UNIT_FACTOR));
- ui.ascRateLast6m->setValue(rint(prefs.ascratelast6m / UNIT_FACTOR));
- ui.descRate->setValue(rint(prefs.descrate / UNIT_FACTOR));
- ui.bestmixEND->setValue(rint(get_depth_units(prefs.bestmixend.mm, NULL, NULL)));
+ ui.ascRate75->setValue(lrint(prefs.ascrate75 / UNIT_FACTOR));
+ ui.ascRate50->setValue(lrint(prefs.ascrate50 / UNIT_FACTOR));
+ ui.ascRateStops->setValue(lrint(prefs.ascratestops / UNIT_FACTOR));
+ ui.ascRateLast6m->setValue(lrint(prefs.ascratelast6m / UNIT_FACTOR));
+ ui.descRate->setValue(lrint(prefs.descrate / UNIT_FACTOR));
+ ui.bestmixEND->setValue(lrint(get_depth_units(prefs.bestmixend.mm, NULL, NULL)));
}
PlannerSettingsWidget::~PlannerSettingsWidget()