diff --git a/planner.c b/planner.c index 6fc0ac29e..f149e699a 100644 --- a/planner.c +++ b/planner.c @@ -656,7 +656,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool len += snprintf(buffer + len, sizeof(buffer) - len, "%s", temp); } - if (isascent && gaschange) { + if (isascent && gaschange && dp->next && nextdp && dp->depth != nextdp->depth) { if (dp->setpoint) { snprintf(temp, sizeof(temp), translate("gettextFromC", "(SP = %.1fbar)"), (double) nextdp->setpoint / 1000.0); len += snprintf(buffer + len, sizeof(buffer) - len, "%s %s", gasname(&newgasmix),