mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow "oxygen" as a gas name
...as this what comes in when the user selects this gas in the add dive/dive planner contet menu. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
253d9ff300
commit
907ccb0b71
1 changed files with 4 additions and 0 deletions
|
@ -1179,6 +1179,10 @@ int validate_gas(const char *text, struct gasmix *gas)
|
|||
o2 = O2_IN_AIR;
|
||||
he = 0;
|
||||
text += strlen(translate("gettextFromC", "air"));
|
||||
} else if (!strcasecmp(text, translate("gettextFromC", "oxygen"))) {
|
||||
o2 = 1000;
|
||||
he = 0;
|
||||
text += strlen(translate("gettextFromC", "oxygen"));
|
||||
} else if (!strncasecmp(text, translate("gettextFromC", "ean"), 3)) {
|
||||
o2 = get_permille(text + 3, &text);
|
||||
he = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue