diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-03-19 13:45:04 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-19 11:31:13 -0700 |
commit | cbd332fbcca16266c010e48f2b536531f91974c2 (patch) | |
tree | db8c845a774cc43fcf38eed2235f81a74236d6be /profile-widget | |
parent | 47ba8b38d4634e85cca44dcb7df138827fe04604 (diff) | |
download | subsurface-cbd332fbcca16266c010e48f2b536531f91974c2.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 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 4f665b2be..bdf2fff06 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -573,7 +573,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)); #endif } |