From 057419fa8528504b5f84dbdb6d7acdb4141d03ee Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 8 Feb 2017 21:55:09 +0100 Subject: [PATCH] Always show manually added gaschanges in notes In the manually entered part, we dont wait until the next stop. Signed-off-by: Robert C. Helling --- core/planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/planner.c b/core/planner.c index d30b1ea5a..a0ab34cf0 100644 --- a/core/planner.c +++ b/core/planner.c @@ -734,7 +734,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool /* Normally a gas change is displayed on the stopping segment, so only display a gas change at the end of * an ascent segment if it is not followed by a stop */ - if (isascent && gaschange_after && dp->next && nextdp && dp->depth != nextdp->depth) { + if ((isascent || dp->entered) && gaschange_after && dp->next && nextdp && (dp->depth != nextdp->depth || nextdp->entered)) { if (dp->setpoint) { snprintf(temp, sz_temp, translate("gettextFromC", "(SP = %.1fbar)"), (double) nextdp->setpoint / 1000.0); len += snprintf(buffer + len, sz_buffer - len, "%s %s", gasname(&newgasmix),