From c23e3adc2939aeb8dc2099146ab6513fa9e6d3f5 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 3 Aug 2016 13:19:12 +0200 Subject: Copy salinity and ambient pressure from diveplan to dive ... otherwise it does not get saved. Fixes #967 Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- core/planner.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/planner.c') diff --git a/core/planner.c b/core/planner.c index 8a2e1d649..601aac767 100644 --- a/core/planner.c +++ b/core/planner.c @@ -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; -- cgit v1.2.3-70-g09d2