mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow zero length segments in planner
Those are needed to indicate bailout or set point switches at the beginning of the ascend. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
607012cccb
commit
b9fcc9543d
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ void add_to_end_of_diveplan(struct diveplan *diveplan, struct divedatapoint *dp)
|
|||
lastdp = &(*lastdp)->next;
|
||||
}
|
||||
*lastdp = dp;
|
||||
if (ldp && dp->time != 0)
|
||||
if (ldp)
|
||||
dp->time += lasttime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue