summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-12-12 22:58:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-20 15:20:44 -0700
commit329641fdcdf7759d430aea2d2a115550bc5caf62 (patch)
tree45e4e272f86c2f1429b3c9fff4e9f435bf9392a7 /core/save-xml.c
parentef821d7d94bbc69337c36f26a25d819e340b14f5 (diff)
downloadsubsurface-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/save-xml.c')
-rw-r--r--core/save-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index 53d7a3af6..3570861e4 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -498,6 +498,8 @@ void save_one_dive_to_mb(struct membuffer *b, struct dive *dive, bool anonymize)
put_format(b, " surge='%d'", dive->surge);
if (dive->chill)
put_format(b, " chill='%d'", dive->chill);
+ if (dive->invalid)
+ put_format(b, " invalid");
save_tags(b, dive->tag_list);
if (dive->dive_site)
put_format(b, " divesiteid='%8x'", dive->dive_site->uuid);