diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-19 13:45:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-19 13:46:00 -0700 |
commit | 88f0f604392a354c18cba5d2959519b176b0d919 (patch) | |
tree | 74b8ab700ad03eacc997a0a27e9bf5a746d3b744 | |
parent | 4a1b8f8de5fc9c5f916cf439478a76573197f5b3 (diff) | |
download | subsurface-88f0f604392a354c18cba5d2959519b176b0d919.tar.gz |
Fix cylinder data O2/He percentage entry braindamage
I can't even begin to explain what got me to write this in the first
place. It makes no sense from any angle I look at it...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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; |