summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-11 13:09:48 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-11 13:09:48 -0800
commit91577f11b5373557dca50627b8e3348b6dee2514 (patch)
tree8f9179a9b1f42375f4a34743efc111594bb1a7c4 /save-xml.c
parentc6ca263fb024bf06f76a5a89fbcd982f3f658d39 (diff)
parent563af1daa781a53fad308870320f99a1903d5058 (diff)
downloadsubsurface-91577f11b5373557dca50627b8e3348b6dee2514.tar.gz
Merge branch 'cns' into cns-merge
I foolishly changed visible_columns in both the (ill-named) cns branch and master... Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Conflicts: divelist.c gtk-gui.c profile.c
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c
index 1d38cc1b8..fb9eb413a 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -334,6 +334,10 @@ static void save_sample(FILE *f, struct sample *sample, const struct sample *pre
fprintf(f, " stoptime='%u:%02u min'", FRACTION(sample->stoptime.seconds, 60));
if (sample->stopdepth.mm != prev->stopdepth.mm)
show_milli(f, " stopdepth='", sample->stopdepth.mm, " m", "'");
+ if (sample->cns != prev->cns)
+ fprintf(f, " cns='%u%%'", sample->cns);
+ if (sample->po2 != prev->po2)
+ fprintf(f, " po2='%u.%2u bar'", FRACTION(sample->po2, 1000));
fprintf(f, " />\n");
}