mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
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:
parent
4a1b8f8de5
commit
88f0f60439
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue