summaryrefslogtreecommitdiffstats
path: root/qt-models/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/models.cpp')
-rw-r--r--qt-models/models.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index ab80f95f0..7be9c2440 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -27,7 +27,7 @@ static QStringList getGasList()
{
QStringList list;
for (int i = 0; i < displayed_dive.cylinders.nr; i++) {
- const cylinder_t *cyl = &displayed_dive.cylinders.cylinders[i];
+ const cylinder_t *cyl = get_cylinder(&displayed_dive, i);
/* Check if we have the same gasmix two or more times
* If yes return more verbose string */
int same_gas = same_gasmix_cylinder(cyl, i, &displayed_dive, true);