diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-12-12 22:58:53 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-20 15:20:44 -0700 |
commit | 329641fdcdf7759d430aea2d2a115550bc5caf62 (patch) | |
tree | 45e4e272f86c2f1429b3c9fff4e9f435bf9392a7 /core/parse-xml.c | |
parent | ef821d7d94bbc69337c36f26a25d819e340b14f5 (diff) | |
download | subsurface-329641fdcdf7759d430aea2d2a115550bc5caf62.tar.gz |
Core: introduce invalid flag for dives
Implement reading/writing the flag from/to XML/git.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index 4058603d3..6218fc74d 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -1381,6 +1381,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf, str return; if (MATCH_STATE("water.divetemperature", temperature, &dive->watertemp)) return; + if (MATCH("invalid", get_bool, &dive->invalid)) + return; nonmatch("dive", name, buf); } |