mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make sure to sanitize the gasmix after editing it
Otherwise we end up showing the gasmix in a different form after editing for the usual air percentages, because we haven't normalized the gasmix values and store them back in the dive in the non-normalized format. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bd6c874be0
commit
1808804bab
1 changed files with 1 additions and 0 deletions
|
|
@ -1241,6 +1241,7 @@ EditCylinder::EditCylinder(int index, cylinder_t cylIn, EditCylinderType typeIn,
|
||||||
cyl[i].gasmix = cylIn.gasmix;
|
cyl[i].gasmix = cylIn.gasmix;
|
||||||
cyl[i].bestmix_o2 = cylIn.bestmix_o2;
|
cyl[i].bestmix_o2 = cylIn.bestmix_o2;
|
||||||
cyl[i].bestmix_he = cylIn.bestmix_he;
|
cyl[i].bestmix_he = cylIn.bestmix_he;
|
||||||
|
sanitize_gasmix(&cyl[i].gasmix);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue