]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Clear O2/H2 field if there is no tank information
authorDirk Hohndel <dirk@hohndel.org>
Fri, 4 Nov 2011 18:00:03 +0000 (11:00 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Fri, 4 Nov 2011 18:00:48 +0000 (11:00 -0700)
Found using the new test dives

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
statistics.c

index 80cab2b02b82c4096750db31ab77438b102ca02b..bf37bf85e01c489ae374e00a7b12f52cadae224a 100644 (file)
@@ -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);