From d071ab4537815a476d196d7fc5d48fea7cac44d5 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 22 Jun 2015 22:45:56 +0200 Subject: When displaying transitions show the gaschange at the stop if there is one Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3-70-g09d2