summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-05-16 21:24:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-26 15:52:04 -0700
commit05a7fe1d401b9cad62f189e925b210a23029ae5a (patch)
treefe76a35ee550a4883bf38f8dccf003fcfd799e2e /core
parent98a65b7157933ec7b9c63da70b44d6450f32c38c (diff)
downloadsubsurface-05a7fe1d401b9cad62f189e925b210a23029ae5a.tar.gz
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 <helling@atdotde.de>
Diffstat (limited to 'core')
-rw-r--r--core/profile.c7
1 files changed, 3 insertions, 4 deletions
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;