From: Dirk Hohndel Date: Fri, 4 Nov 2011 18:00:03 +0000 (-0700) Subject: Clear O2/H2 field if there is no tank information X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d906c82f31c5406b6debe0df88cb49b916cd6ced;p=ext%2Fsubsurface.git Clear O2/H2 field if there is no tank information Found using the new test dives Signed-off-by: Dirk Hohndel --- diff --git a/statistics.c b/statistics.c index 80cab2b..bf37bf8 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);