diff --git a/core/plannernotes.c b/core/plannernotes.c
index a08bce88d..9f9a43f92 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -448,11 +448,18 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
}
}
/* Print the gas consumption for every cylinder here to temp buffer. */
- snprintf(temp, sz_temp, translate("gettextFromC", "%.0f%s/%.0f%s of %s (%.0f%s/%.0f%s in planned ascent)"), volume, unit, pressure, pressure_unit, gasname(&cyl->gasmix), deco_volume, unit, deco_pressure, pressure_unit);
+ if (lrint(volume) > 0)
+ snprintf(temp, sz_temp, translate("gettextFromC", "%.0f%s/%.0f%s of %s (%.0f%s/%.0f%s in planned ascent)"), volume, unit, pressure, pressure_unit, gasname(&cyl->gasmix), deco_volume, unit, deco_pressure, pressure_unit);
+ else
+ snprintf(temp, sz_temp, translate("gettextFromC", "%.0f%s/%.0f%s of %s"), volume, unit, pressure, pressure_unit, gasname(&cyl->gasmix));
} else {
- snprintf(temp, sz_temp, translate("gettextFromC", "%.0f%s (%.0f%s during planned ascent) of %s"),
- volume, unit, deco_volume, unit, gasname(&cyl->gasmix));
+ if (lrint(volume) > 0)
+ snprintf(temp, sz_temp, translate("gettextFromC", "%.0f%s of %s (%.0f%s during planned ascent)"),
+ volume, unit, gasname(&cyl->gasmix), deco_volume, unit);
+ else
+ snprintf(temp, sz_temp, translate("gettextFromC", "%.0f%s of %s"),
+ volume, unit, gasname(&cyl->gasmix));
}
/* Gas consumption: Now finally print all strings to output */
len += snprintf(buffer + len, sz_buffer - len, "%s%s%s
", temp, warning, mingas);