Add gas change event from profile context menu

This allows to add missing gas change events to the currently shown dive
computer. Only gases defined in the Equipment section are offered.

Fixes: #250

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-19 20:35:15 -08:00
parent 28ad26e878
commit 36cb50fb37
3 changed files with 9 additions and 2 deletions

View file

@ -76,7 +76,7 @@ static inline bool match_percent(int a, int b)
return (a + 5) / 10 == (b + 5) / 10;
}
static int get_gasidx(struct dive *dive, int o2, int he)
int get_gasidx(struct dive *dive, int o2, int he)
{
int gasidx = -1;