diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-11-04 11:00:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-11-04 11:00:48 -0700 |
commit | d906c82f31c5406b6debe0df88cb49b916cd6ced (patch) | |
tree | 420c4d2daabf1e955dbed5b2c1d3a262ae99095f /statistics.c | |
parent | 0e64a22c142bbb2415b010968194948c592b1542 (diff) | |
download | subsurface-d906c82f31c5406b6debe0df88cb49b916cd6ced.tar.gz |
Clear O2/H2 field if there is no tank information
Found using the new test dives
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/statistics.c b/statistics.c index 80cab2b02..bf37bf85e 100644 --- a/statistics.c +++ b/statistics.c @@ -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); |