[PATCH] Profile widget: Display gradient factors used in plan
Dirk Hohndel
dirk at hohndel.org
Sat Mar 19 11:34:02 PDT 2016
Good catch!
I'll add the same for 4.5.5 as well.
/D
On Sat, Mar 19, 2016 at 01:45:04PM +1100, Rick Walsh wrote:
> 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 at gmail.com>
> ---
> profile-widget/profilewidget2.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
> index 4f665b2..bdf2fff 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
> }
>
> --
> 2.5.0
>
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
More information about the subsurface
mailing list