From d906c82f31c5406b6debe0df88cb49b916cd6ced Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Nov 2011 11:00:03 -0700 Subject: [PATCH] Clear O2/H2 field if there is no tank information Found using the new test dives Signed-off-by: Dirk Hohndel --- statistics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.43.0