mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:33:24 +00:00
Clear O2/H2 field if there is no tank information
Found using the new test dives Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0e64a22c14
commit
d906c82f31
1 changed files with 1 additions and 2 deletions
|
@ -178,8 +178,7 @@ void show_dive_stats(struct dive *dive)
|
|||
gas_used += cyl->type.size.mliter / 1000.0 *
|
||||
(cyl->start.mbar - cyl->end.mbar);
|
||||
}
|
||||
if (offset)
|
||||
set_label(info_stat_w.o2he, buf);
|
||||
set_label(info_stat_w.o2he, buf);
|
||||
if (gas_used) {
|
||||
value = get_volume_units(gas_used, &decimals, &unit);
|
||||
set_label(info_stat_w.gas_used, "%.*f %s", decimals, value, unit);
|
||||
|
|
Loading…
Add table
Reference in a new issue