summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-14 09:44:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-14 09:44:18 -0800
commit23cfd907dea74dd8e4c8bbf93c8c3f598868623e (patch)
tree820717f6b5cb2614129c06b9b43ddff14ddd3efb /parse-xml.c
parentca19578e407424221309f8724b451ffe2c1f9769 (diff)
downloadsubsurface-23cfd907dea74dd8e4c8bbf93c8c3f598868623e.tar.gz
Better handling of manually edited air temperature
We now load and save this in the XML file, we do the right thing when merging dives and show the edited air temperature in the Dive Info notebook when a divecomputer doesn't have an air temperature. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 9c9e2abbc..5ae27c811 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1011,6 +1011,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
return;
if (MATCH(".he", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.he))
return;
+ if (MATCH(".divetemperature.air", temperature, &dive->airtemp))
+ return;
nonmatch("dive", name, buf);
}