From: Linus Torvalds Date: Wed, 19 Oct 2011 17:06:11 +0000 (-0700) Subject: Parse the xml sample cylinder index properly X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=04f372f8aa5b4f9ba462e0e93b76f3dde6af00f1;p=ext%2Fsubsurface.git Parse the xml sample cylinder index properly 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 --- diff --git a/parse-xml.c b/parse-xml.c index 6a08a38..1b0c449 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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))