mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
cad80e5a53
commit
5b1557ccb1
1 changed files with 0 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue