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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-09-17 21:24:41 +02:00 committed by bstoeger
parent cad80e5a53
commit 5b1557ccb1

View file

@ -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();