summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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