summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-06-22 22:45:56 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-22 17:28:01 -0700
commitd071ab4537815a476d196d7fc5d48fea7cac44d5 (patch)
treee91468249b385df05e8ca85b3629b815b1e7fea1 /planner.c
parent26622e7e048caa952b697abee706a7936f94c39c (diff)
downloadsubsurface-d071ab4537815a476d196d7fc5d48fea7cac44d5.tar.gz
When displaying transitions show the gaschange at the stop if there is one
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
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, "<td style='padding-left: 10px; float: right;'>%s</td>", 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, "<td style='padding-left: 10px; color: red; float: left;'><b>%s %s</b></td>", gasname(&newgasmix),