diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-11-24 14:17:01 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-11-25 20:13:01 +0100 |
commit | 088db5e12be569ea85fc2ac34c22413a30090cba (patch) | |
tree | 535b7c07ce0652c3d602223699b8e63a4d6ec6a3 /qt-models/diveplotdatamodel.cpp | |
parent | 8e21a65653514d9340ef45c9b9c53dfe5d280350 (diff) | |
download | subsurface-088db5e12be569ea85fc2ac34c22413a30090cba.tar.gz |
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>
Diffstat (limited to 'qt-models/diveplotdatamodel.cpp')
-rw-r--r-- | qt-models/diveplotdatamodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp index ac6cf7cd8..a893cb46b 100644 --- a/qt-models/diveplotdatamodel.cpp +++ b/qt-models/diveplotdatamodel.cpp @@ -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 |