Gases in divelist

On Sun, 17 Mar 2013, Dirk Hohndel wrote:

> Dirk Hohndel <dirk@hohndel.org> writes:
>
> Never mind. I had a couple of hours today and since this wasn't enough
> for any of the big things on my todo list I instead added this feature.

Cool. 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>

Best
Robert

--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                       Scientific Coordinator
 		      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
     stupid .sig\n";   http://www.atdotde.de
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>