]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Parse the xml sample cylinder index properly
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Oct 2011 17:06:11 +0000 (10:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 19 Oct 2011 17:06:11 +0000 (10:06 -0700)
We would save it in the xml file, but then not actually read it back
properly.  Oops.  Not that we actually have any multi-tank dives yet, so
it doesn't matter.  Yet.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
parse-xml.c

index 6a08a3845c9551c3f35b818ff5c51b468537abda..1b0c4498507be702ab88054ff98497ef0fbb0991 100644 (file)
@@ -604,6 +604,8 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu
                return;
        if (MATCH(".sample.cylpress", pressure, &sample->cylinderpressure))
                return;
+       if (MATCH(".sample.cylinderindex", get_index, &sample->cylinderindex))
+               return;
        if (MATCH(".sample.depth", depth, &sample->depth))
                return;
        if (MATCH(".sample.temp", temperature, &sample->temperature))