aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-27 18:20:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-27 11:49:08 -0800
commit46004c39e266fe76f9945e52000dd051de3f4099 (patch)
tree9e5005fec23c7cda7fcbdf132785209ac26c2f2c /core/save-xml.c
parent789e86480d9dd2b245845ac1327ee0cc71708942 (diff)
downloadsubsurface-46004c39e266fe76f9945e52000dd051de3f4099.tar.gz
Store and load the planner related depth info of a cylinder in logfile
Store cylinder.depth in XML files and in git storage. This info is in fact the gas switch depth of a specific gas/cylinder in the planner. This change avoids the need of typing in a user specific depth value again when replanning an existing planned dive. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
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 fe1d73817..fa8ad8961 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -159,6 +159,8 @@ static void save_cylinder_info(struct membuffer *b, struct dive *dive)
put_pressure(b, cylinder->end, " end='", " bar'");
if (cylinder->cylinder_use != OC_GAS)
show_utf8(b, cylinderuse_text[cylinder->cylinder_use], " use='", "'", 1);
+ if (cylinder->depth.mm != 0)
+ put_milli(b, " depth='", cylinder->depth.mm, " m'");
put_format(b, " />\n");
}
}