From 33223fb2cca9b0b5e104f8a121b5cc5f48996238 Mon Sep 17 00:00:00 2001
From: Linus Torvalds <torvalds@linux-foundation.org>
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 <forini.r@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
---
 parse-xml.c | 2 ++
 1 file changed, 2 insertions(+)

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