mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:33:24 +00:00
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>
This commit is contained in:
parent
fafaf0eef0
commit
33223fb2cc
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue