summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-21 12:41:40 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-21 12:41:40 -0800
commit6faf33047eba4b992b30d39ae53c63bcabc5eea2 (patch)
tree13934b806b39d5e565835478e23913bbeecea37d /subsurface-core
parenteef5bf75c36ed40cf1d9920556e9fb04a5d611c3 (diff)
downloadsubsurface-6faf33047eba4b992b30d39ae53c63bcabc5eea2.tar.gz
Return a value when getting SAC rate
Obvious "mass edit" error. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/subsurface-qt/DiveObjectHelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
index 51831efd8..78c1dfc63 100644
--- a/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
+++ b/subsurface-core/subsurface-qt/DiveObjectHelper.cpp
@@ -176,7 +176,7 @@ QString DiveObjectHelper::sac() const
const char *unit;
int decimal;
double value = get_volume_units(m_dive->sac, &decimal, &unit);
- QString::number(value, 'f', decimal).append(unit);
+ return QString::number(value, 'f', decimal).append(unit);
}
QStringList DiveObjectHelper::weights() const