summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-02-02 20:29:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-02 12:37:24 -0800
commit1d8662006cbb5edae941315e30ede381c23a817b (patch)
tree88ff6ec54d5e4ed4e29f3b93bea04292ef986e5f /core/subsurface-qt/DiveObjectHelper.cpp
parenta031dbbbd8fbd8a913e517cf1bea5d61311bf266 (diff)
downloadsubsurface-1d8662006cbb5edae941315e30ede381c23a817b.tar.gz
In statistics, ignore gas use of planned dives
When merged with real dives, those would double count otherwise. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index 9814f9a6a..cd7c4abca 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -186,7 +186,7 @@ QString DiveObjectHelper::gas() const
*/
QString gas, gases;
for (int i = 0; i < MAX_CYLINDERS; i++) {
- if (!is_cylinder_used(m_dive, i))
+ if (!is_cylinder_used(m_dive, i, false))
continue;
gas = m_dive->cylinder[i].type.description;
if (!gas.isEmpty())