mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
if only one dive, max depth show in average field
Signed-off-by: Fabio Rueda <avances123@gmail.com>
This commit is contained in:
parent
e780b0a96c
commit
8c82a1cb98
1 changed files with 3 additions and 2 deletions
|
@ -47,13 +47,14 @@ void TabDiveStatistics::updateData()
|
||||||
stats_t stats_selection;
|
stats_t stats_selection;
|
||||||
calculate_stats_selected(&stats_selection);
|
calculate_stats_selected(&stats_selection);
|
||||||
clear();
|
clear();
|
||||||
ui->depthLimits->setMaximum(get_depth_string(stats_selection.max_depth, true));
|
|
||||||
if (amount_selected > 1) {
|
if (amount_selected > 1) {
|
||||||
|
ui->depthLimits->setMaximum(get_depth_string(stats_selection.max_depth, true));
|
||||||
ui->depthLimits->setMinimum(get_depth_string(stats_selection.min_depth, true));
|
ui->depthLimits->setMinimum(get_depth_string(stats_selection.min_depth, true));
|
||||||
ui->depthLimits->setAverage(get_depth_string(stats_selection.combined_max_depth.mm / stats_selection.selection_size, true));
|
ui->depthLimits->setAverage(get_depth_string(stats_selection.combined_max_depth.mm / stats_selection.selection_size, true));
|
||||||
} else {
|
} else {
|
||||||
|
ui->depthLimits->setMaximum("");
|
||||||
ui->depthLimits->setMinimum("");
|
ui->depthLimits->setMinimum("");
|
||||||
ui->depthLimits->setAverage("");
|
ui->depthLimits->setAverage(get_depth_string(stats_selection.max_depth, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stats_selection.max_sac.mliter && (stats_selection.max_sac.mliter != stats_selection.avg_sac.mliter))
|
if (stats_selection.max_sac.mliter && (stats_selection.max_sac.mliter != stats_selection.avg_sac.mliter))
|
||||||
|
|
Loading…
Add table
Reference in a new issue