diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-02-08 21:55:09 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-11 08:31:42 -0800 |
commit | 057419fa8528504b5f84dbdb6d7acdb4141d03ee (patch) | |
tree | 78fd23c9af60cac09ed0d1b7dc81403cc241978a | |
parent | fef07750ac450b6e0403891af39822858e22669f (diff) | |
download | subsurface-057419fa8528504b5f84dbdb6d7acdb4141d03ee.tar.gz |
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 <helling@atdotde.de>
-rw-r--r-- | core/planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<td style='padding-left: 10px; color: red; float: left;'><b>%s %s</b></td>", gasname(&newgasmix), |