diff --git a/CHANGELOG.md b/CHANGELOG.md index 420c5dd71..e7c9841a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +desktop: fix bug when printing a dive plan with multiple segments desktop: fix bug in bailout gas selection for CCR dives desktop: fix crash on cylinder update of multiple dives desktop: use dynamic tank use drop down in equipment tab and planner diff --git a/core/plannernotes.c b/core/plannernotes.c index 56e0c40cb..bcedaf661 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -325,15 +325,15 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d /* 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 || dp->entered) && gaschange_after && dp->next && nextdp && (dp->depth.mm != nextdp->depth.mm || nextdp->entered)) { - if (dp->setpoint) { - asprintf_loc(&temp, translate("gettextFromC", "(SP = %.1fbar CCR)"), dp->setpoint / 1000.0); + if (isascent && gaschange_after && dp->next && nextdp && nextdp->entered) { + if (nextdp->setpoint) { + asprintf_loc(&temp, translate("gettextFromC", "(SP = %.1fbar CCR)"), nextdp->setpoint / 1000.0); put_format(&buf, "