[PATCH] #443: Typesetting in profile infobox

Andrey Zhdanov andrjufka at gmail.com
Wed Feb 26 13:25:55 PST 2014


There should be a space between the colon and the value in the information box in the profile.
The vertical speed should have only one digit after the decimal point (at least in metric units).

Signed-off-by: Andrey Zhdanov <andrjufka at gmail.com>
---
 profile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/profile.c b/profile.c
index 5cb9564..dcf22a5 100644
--- a/profile.c
+++ b/profile.c
@@ -1457,7 +1457,7 @@ static void plot_string(struct plot_data *entry, struct membuffer *b, bool has_n
 	double depthvalue, tempvalue, speedvalue;
 
 	depthvalue = get_depth_units(entry->depth, NULL, &depth_unit);
-	put_format(b, translate("gettextFromC","@:%d:%02d\nD:%.1f %s\n"), FRACTION(entry->sec, 60), depthvalue, depth_unit);
+	put_format(b, translate("gettextFromC","@: %d:%02d\n D: %.1f %s\n"), FRACTION(entry->sec, 60), depthvalue, depth_unit);
 	if (GET_PRESSURE(entry)) {
 		pressurevalue = get_pressure_units(GET_PRESSURE(entry), &pressure_unit);
 		put_format(b, translate("gettextFromC","P:%d %s\n"), pressurevalue, pressure_unit);
@@ -1470,7 +1470,7 @@ static void plot_string(struct plot_data *entry, struct membuffer *b, bool has_n
 	/* Ascending speeds are positive, descending are negative */
 	if (entry->speed > 0)
 		speedvalue *= -1;
-	put_format(b, translate("gettextFromC","V:%.2f %s\n"), speedvalue, vertical_speed_unit);
+	put_format(b, translate("gettextFromC"," V: %.1f %s\n"), speedvalue, vertical_speed_unit);
 
 	if (entry->sac && prefs.show_sac)
 		put_format(b, translate("gettextFromC","SAC:%2.1fl/min\n"), entry->sac / 1000.0);
-- 
1.8.3.4 (Apple Git-47)



More information about the subsurface mailing list