From 33223fb2cca9b0b5e104f8a121b5cc5f48996238 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 3 Jun 2014 16:01:48 -0700 Subject: Fix dive water temperature XML parsing We parsed it rigth for dive computers, but not for the manually filled per-dive case. The git save seems to have gotten it right. I think this has been broken since the whole "move as much as possible to the dive computer sections", but I didn't actually check. Reported-by: roberto forini Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parse-xml.c') diff --git a/parse-xml.c b/parse-xml.c index f6806d28a..cef5221db 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1154,6 +1154,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf) return; if (MATCH("air.divetemperature", temperature, &dive->airtemp)) return; + if (MATCH("water.divetemperature", temperature, &dive->watertemp)) + return; nonmatch("dive", name, buf); } -- cgit v1.2.3-70-g09d2