summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index d6a6c2579..01351376d 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1215,9 +1215,10 @@ QString get_gas_string(struct gasmix gas)
return result;
}
-QString get_divepoint_gas_string(const divedatapoint &p)
+QString get_divepoint_gas_string(struct dive *d, const divedatapoint &p)
{
- return get_gas_string(p.gasmix);
+ int idx = p.cylinderid;
+ return get_gas_string(d->cylinder[idx].gasmix);
}
weight_t string_to_weight(const char *str)