mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use correct pO2 when computing MOD in equipment tab
The cylinder model is used both in the planner and the equipment tab. We have three preferences for the pO2 that is used to compute MOD: In the planner, there is one for the bottom part of the dive and another one for deco. Those are set in the planenr UI. There is another value, controlled in the Tec Prefernces. That one should be used in the equipment tab rather than the one from the planner. Fixes #2984 Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
a7ca27d071
commit
efdc875aa3
3 changed files with 4 additions and 2 deletions
|
@ -230,7 +230,7 @@ QVariant CylindersModel::data(const QModelIndex &index, int role) const
|
|||
return QStringLiteral("*");
|
||||
} else {
|
||||
pressure_t modpO2;
|
||||
modpO2.mbar = prefs.bottompo2;
|
||||
modpO2.mbar = in_planner() ? prefs.bottompo2 : prefs.modpO2 * 1000;
|
||||
return get_depth_string(gas_mod(cyl->gasmix, modpO2, d, M_OR_FT(1,1)), true);
|
||||
}
|
||||
case MND:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue