summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-03-19 13:45:04 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-19 11:35:28 -0700
commit550f07da8bc7a54dfc0dae1224bd6b9cdfabd373 (patch)
tree583876eb9a39e474fb501f3993c89ef2539e7696 /qt-ui/profile
parent3f4d0e317de8f084e9ce930b7fa4ba1c40c52ade (diff)
downloadsubsurface-550f07da8bc7a54dfc0dae1224bd6b9cdfabd373.tar.gz
Profile widget: Display gradient factors used in plan
Currently, the gradient factors displayed at the top of the profile are the gradient factors set in preferences. This is correct for saved dives, but when planning dives, the gradient factors displayed at the top of the profile should be the gradient factors used in the plan. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index f1acea9c4..10d583d85 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -524,7 +524,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
if (prefs.deco_mode == VPMB)
decoModelParameters->setText(QString("VPM-B +%1").arg(prefs.conservatism_level));
else
- decoModelParameters->setText(QString("GF %1/%2").arg(prefs.gflow).arg(prefs.gfhigh));
+ decoModelParameters->setText(QString("GF %1/%2").arg(diveplan.gflow).arg(diveplan.gfhigh));
}
// special handling for the first time we display things