From 47ca630cc272da0a0114658d062204bef0153796 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Mon, 7 Oct 2013 12:24:56 +0200 Subject: Maximum depth of a dive/a series of dives is not show correctly After selecting a dive or a series of dives, the "Stats" tab shows the minimum, average and maximum stats for the selected dives. The "Depth" section does not display the correct value for the maximum depth. Signed-off-by: Benjamin Fogel Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index fd40bed86..a8d478164 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -328,7 +328,7 @@ void MainTab::updateDiveInfo(int dive) ui.airPressureText->setText(QString("%1mbar").arg(d->surface_pressure.mbar)); else ui.airPressureText->clear(); - (get_depth_string(stats_selection.max_depth, TRUE)); + ui.depthLimits->setMaximum(get_depth_string(stats_selection.max_depth, TRUE)); ui.depthLimits->setMinimum(get_depth_string(stats_selection.min_depth, TRUE)); ui.depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, TRUE)); ui.sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, TRUE).append(tr("/min"))); -- cgit v1.2.3-70-g09d2