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>
This commit is contained in:
Dirk Hohndel 2013-06-19 13:45:39 -07:00
parent 4a1b8f8de5
commit 88f0f60439

View file

@ -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;