aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/worldmap-save.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-01-10 12:12:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-10 14:13:58 -0800
commit7701975d9804f9ce1f62a10a1a2d890f7c1b82d1 (patch)
treedb43000c7dda553edc671e9c335418e517867e10 /subsurface-core/worldmap-save.c
parent82c87204e48654a9b2661c68fe66b9f16f81c4ba (diff)
downloadsubsurface-7701975d9804f9ce1f62a10a1a2d890f7c1b82d1.tar.gz
Support for imperial depth on worldmap export
This will use the depth units from user preferences when exporting the worldmap. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/worldmap-save.c')
-rw-r--r--subsurface-core/worldmap-save.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/subsurface-core/worldmap-save.c b/subsurface-core/worldmap-save.c
index 25c5ee33f..f79978495 100644
--- a/subsurface-core/worldmap-save.c
+++ b/subsurface-core/worldmap-save.c
@@ -40,9 +40,9 @@ void writeMarkers(struct membuffer *b, const bool selected_only)
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Duration:"));
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "min"));
put_duration(b, dive->duration, pre, post);
- snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Max. depth:"));
- snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
- put_depth(b, dive->maxdepth, pre, post);
+ put_string(b, "<p> ");
+ put_HTML_quoted(b, translate("gettextFromC", "Max. depth:"));
+ put_HTML_depth(b, dive, " ", "</p>");
put_string(b, "<p> ");
put_HTML_quoted(b, translate("gettextFromC", "Air temp.:"));
put_HTML_airtemp(b, dive, " ", "</p>");