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/save-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/save-xml.c')
-rw-r--r-- | core/save-xml.c | 2 |
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); |