mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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 <nystire@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
475e058d40
commit
47ca630cc2
1 changed files with 1 additions and 1 deletions
|
@ -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")));
|
||||
|
|
Loading…
Reference in a new issue