From 5b1557ccb17bfc6e61ac72e97b12690744a6624e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 17 Sep 2022 21:24:41 +0200 Subject: [PATCH] core: don't clear displayed_dive when clearing data displayed_dive used to contain the currently displayed (as in shown on the profile) dive. However, now it is only a "scratch" dive used by the planner and initialized every time the planner is started. There is no point in clearing this dive when clearing the dive data. In fact, the dive should probably be cleared when the planner finishes. Signed-off-by: Berthold Stoeger --- core/divelist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/divelist.c b/core/divelist.c index d55c4a182..0278a20ae 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -1318,7 +1318,6 @@ void clear_dive_file_data() current_dive = NULL; clear_divelog(&divelog); - clear_dive(&displayed_dive); clear_event_names(); reset_min_datafile_version();