mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Copy salinity and ambient pressure from diveplan to dive
... otherwise it does not get saved. Fixes #967 Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c5ca5c639f
commit
c23e3adc29
1 changed files with 2 additions and 0 deletions
|
@ -271,6 +271,8 @@ static void create_dive_from_plan(struct diveplan *diveplan, bool track_gas)
|
|||
reset_cylinders(&displayed_dive, track_gas);
|
||||
dc = &displayed_dive.dc;
|
||||
dc->when = displayed_dive.when = diveplan->when;
|
||||
dc->surface_pressure.mbar = diveplan->surface_pressure;
|
||||
dc->salinity = diveplan->salinity;
|
||||
free(dc->sample);
|
||||
dc->sample = NULL;
|
||||
dc->samples = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue