From 05a7fe1d401b9cad62f189e925b210a23029ae5a Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 16 May 2017 21:24:39 +0200 Subject: Gas denisity display improvement This combines the display with EADD since this is the same value with a different unit. And show it for air dives as well. Suggested by Jan Mulder & Anton Lundin Signed-off-by: Robert C. Helling --- core/profile.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/profile.c b/core/profile.c index d46904cbe..36e365d48 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1333,15 +1333,14 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me switch (pi->dive_type) { case NITROX: ead = lrint(get_depth_units(lrint(entry->ead), NULL, &depth_unit)); - put_format(b, translate("gettextFromC", "EAD: %d%s\nEADD: %d%s\n"), ead, depth_unit, eadd, depth_unit); - put_format(b, translate("gettextFromC", "density: %.1fg/l\n"), entry->density); + put_format(b, translate("gettextFromC", "EAD: %d%s\nEADD: %d%s / %.1fg/ℓ\n"), ead, depth_unit, eadd, depth_unit, entry->density); break; case TRIMIX: end = lrint(get_depth_units(lrint(entry->end), NULL, &depth_unit)); - put_format(b, translate("gettextFromC", "END: %d%s\nEADD: %d%s\n"), end, depth_unit, eadd, depth_unit); - put_format(b, translate("gettextFromC", "density: %.1fg/l\n"), entry->density); + put_format(b, translate("gettextFromC", "END: %d%s\nEADD: %d%s / %.1fg/ℓ\n"), end, depth_unit, eadd, depth_unit, entry->density); break; case AIR: + put_format(b, translate("gettectFromC", "Density: %.1fg/ℓ\n"), entry->density); case FREEDIVING: /* nothing */ break; -- cgit v1.2.3-70-g09d2