diff options
author | Benjamin <nystire@gmail.com> | 2013-10-07 12:24:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-07 09:22:16 -0700 |
commit | 47ca630cc272da0a0114658d062204bef0153796 (patch) | |
tree | 3985af1eb01502680bc14d4581e4090713b8055c /qt-ui | |
parent | 475e058d40690803a4114f5aa9055023af6e6b4b (diff) | |
download | subsurface-47ca630cc272da0a0114658d062204bef0153796.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"))); |