From 329641fdcdf7759d430aea2d2a115550bc5caf62 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 12 Dec 2019 22:58:53 +0100 Subject: Core: introduce invalid flag for dives Implement reading/writing the flag from/to XML/git. Signed-off-by: Berthold Stoeger --- core/parse-xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/parse-xml.c') 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); } -- cgit v1.2.3-70-g09d2