Hi, this morning, we trying to reproduce a bug reported on IRC I realized that the verbatim dive plan was broken in the sense that it did not list individual deco stops. This patch repairs that.
Best Robert
From 86fba4f5e8968f1c2158fe07d34a7867bf9c082a Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" <[email protected]> Date: Tue, 3 Feb 2015 20:37:35 +0100 Subject: [PATCH] Show stops in verbatim diveplan The position of one curly brace was wrong. Bummer. Signed-off-by: Robert C. Helling <[email protected]> --- planner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planner.c b/planner.c index a7844ab..d12f660 100644 --- a/planner.c +++ b/planner.c @@ -613,9 +613,9 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool gasname(&gasmix)); len += snprintf(buffer + len, sizeof(buffer) - len, "%s<br>", temp); - newdepth = dp->depth; - lasttime = dp->time; } + newdepth = dp->depth; + lasttime = dp->time; } else { if (dp->depth != nextdp->depth || gasmix_distance(&gasmix, &newgasmix) != 0 || dp->setpoint != nextdp->setpoint) { if (dp->setpoint) -- 1.9.3 (Apple Git-50)
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
