diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-21 12:41:40 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-21 12:41:40 -0800 |
commit | 6faf33047eba4b992b30d39ae53c63bcabc5eea2 (patch) | |
tree | 13934b806b39d5e565835478e23913bbeecea37d /subsurface-core | |
parent | eef5bf75c36ed40cf1d9920556e9fb04a5d611c3 (diff) | |
download | subsurface-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.cpp | 2 |
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 |