mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Hand planner variables to profile
Pass the planner state struct to the profile computation so it can use deco_time and first ceiling to display VPM-B ceiling. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
8e21a65653
commit
088db5e12b
6 changed files with 15 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "qt-models/diveplotdatamodel.h"
|
||||
#include "qt-models/diveplannermodel.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/profile.h"
|
||||
#include "core/divelist.h"
|
||||
|
|
@ -232,7 +233,7 @@ void DivePlotDataModel::calculateDecompression()
|
|||
{
|
||||
struct divecomputer *dc = select_dc(&displayed_dive);
|
||||
init_decompression(&plot_deco_state, &displayed_dive);
|
||||
calculate_deco_information(&plot_deco_state, &displayed_dive, dc, &pInfo, false);
|
||||
calculate_deco_information(&plot_deco_state, &(DivePlannerPointsModel::instance()->final_deco_state), &displayed_dive, dc, &pInfo, false);
|
||||
dataChanged(index(0, CEILING), index(pInfo.nr - 1, TISSUE_16));
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue