When the last stop at 6m/20ft option is selected, replace the 3m/10ft stop with zero depth, rather than doubling up on the 6m/20ft stop. This removes the need to differentiate between 6m (=6000mm) and 20ft (=6096mm) and saves calling a helper function. It does not alter the calculated profile at all.
Signed-off-by: Rick Walsh <[email protected]> --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 216d791..550d463 100644 --- a/planner.c +++ b/planner.c @@ -912,7 +912,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool } if (prefs.last_stop) - decostoplevels[1] = M_OR_FT(6,20); + decostoplevels[1] = 0; /* Let's start at the last 'sample', i.e. the last manually entered waypoint. */ sample = &displayed_dive.dc.sample[displayed_dive.dc.samples - 1]; -- 2.4.3 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
