From 9fbd11744f1bfffbc6973e0f9483ae1630dd8722 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Wed, 6 Jul 2016 22:40:31 +1000 Subject: Add function to calculate gas maximum narcotic depth Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- core/subsurface-qt/SettingsObjectWrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp') diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index b8865e256..4604abfd7 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -917,7 +917,7 @@ int DivePlannerSettings::decopo2() const int DivePlannerSettings::bestmixend() const { - return prefs.bestmixend; + return prefs.bestmixend.mm; } int DivePlannerSettings::reserveGas() const @@ -1099,7 +1099,7 @@ void DivePlannerSettings::setBestmixend(int value) QSettings s; s.beginGroup(group); s.setValue("bestmixend", value); - prefs.bestmixend = value; + prefs.bestmixend.mm = value; emit bestmixendChanged(value); } -- cgit v1.2.3-70-g09d2