summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-07-22 17:20:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-30 07:43:16 -0700
commit25f3038d40edd7b88e06b2a0643878b30264f1b6 (patch)
treeaf7c6f876aaf8e9181c0c3b135cdd2b794bc979a /save-xml.c
parentcfac25626b209ee12201a30524d421d6a49a7b58 (diff)
downloadsubsurface-25f3038d40edd7b88e06b2a0643878b30264f1b6.tar.gz
RBT - Add save/load in xml file support
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c
index 160b5fc84..00f4626d3 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -210,6 +210,8 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
put_format(b, " tts='%u:%02u min'", FRACTION(sample->tts.seconds, 60));
old->tts = sample->tts;
}
+ if (sample->rbt.seconds)
+ put_format(b, " rbt='%u:%02u min'", FRACTION(sample->rbt.seconds, 60));
if (sample->in_deco != old->in_deco) {
put_format(b, " in_deco='%d'", sample->in_deco ? 1 : 0);
old->in_deco = sample->in_deco;