diff options
author | Robert C. Helling <helling@lmu.de> | 2013-03-18 15:22:14 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-18 07:37:08 -0700 |
commit | ae4bd802afac9723da27f2bcc3d402effd636ffc (patch) | |
tree | 4c0d95723556656c1d07eda635f26490cf638f66 /webservice.c | |
parent | 8a5792d473bb30a6f5cbfd2168c4427c16436031 (diff) | |
download | subsurface-ae4bd802afac9723da27f2bcc3d402effd636ffc.tar.gz |
Take only used gases into account when showing gas in divelist
Here is a patch that restricts the gases listed in the divelist to those
that are actually used. I seem to have the indentation now under control
but I am not sure about the logic:
1) First gas (with index 0) is always used.
2) If there is a gas switch event, the new gas is also used (determined by
walking the list of dive computers and then the list of events).
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'webservice.c')
0 files changed, 0 insertions, 0 deletions