diff options
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index e31d88583..14118c519 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1169,7 +1169,10 @@ int DivePlannerPointsModel::addStop(int milimeters, int minutes, int o2, int he, break; } } - + if (row > 1 && o2 == -1) { // this means "take the current gas" + o2 = divepoints.at(row - 1).o2; + he = divepoints.at(row - 1).he; + } // add the new stop beginInsertRows(QModelIndex(), row, row); divedatapoint point; |