summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index bdecf24ad..45360c85c 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -1138,7 +1138,7 @@ bool DivePlannerPointsModel::addGas(int o2, int he)
for (int i = 0; i < MAX_CYLINDERS; i++) {
if (cylinder_nodata(cyl)) {
- cyl->type.description = strdup("Cylinder for planning");
+ fill_default_cylinder(cyl);
cyl->gasmix.o2.permille = o2;
cyl->gasmix.he.permille = he;
CylindersModel::instance()->setDive(stagingDive);