From 7701975d9804f9ce1f62a10a1a2d890f7c1b82d1 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 10 Jan 2016 12:12:39 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- subsurface-core/worldmap-save.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subsurface-core/worldmap-save.c') 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), "

%s ", translate("gettextFromC", "Duration:")); snprintf(post, sizeof(post), " %s

", translate("gettextFromC", "min")); put_duration(b, dive->duration, pre, post); - snprintf(pre, sizeof(pre), "

%s ", translate("gettextFromC", "Max. depth:")); - snprintf(post, sizeof(post), " %s

", translate("gettextFromC", "m")); - put_depth(b, dive->maxdepth, pre, post); + put_string(b, "

"); + put_HTML_quoted(b, translate("gettextFromC", "Max. depth:")); + put_HTML_depth(b, dive, " ", "

"); put_string(b, "

"); put_HTML_quoted(b, translate("gettextFromC", "Air temp.:")); put_HTML_airtemp(b, dive, " ", "

"); -- cgit v1.2.3-70-g09d2