diff options
-rw-r--r-- | qt-ui/models.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index bd25ff268..3b2940a6c 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -228,13 +228,13 @@ bool CylindersModel::setData(const QModelIndex& index, const QVariant& value, in break; case O2: if (CHANGED(toInt, "%", "%")) { - cyl->gasmix.o2.permille = value.toInt() * 10 - 5; + cyl->gasmix.o2.permille = value.toInt() * 10; mark_divelist_changed(TRUE); } break; case HE: if (CHANGED(toInt, "%", "%")) { - cyl->gasmix.he.permille = value.toInt() * 10 - 5; + cyl->gasmix.he.permille = value.toInt() * 10; mark_divelist_changed(TRUE); } break; |