[recipes] Fix the unit formatting



commit 76381c05d81f092c9ad569de2d955fb21aca5f4c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 5 18:42:54 2017 -0400

    Fix the unit formatting
    
    We are converting to the user_unit, so we need to use
    the user_unit for picking the right symbol to display.

 src/gr-recipe-formatter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-recipe-formatter.c b/src/gr-recipe-formatter.c
index b7334ef..2bb2ee2 100644
--- a/src/gr-recipe-formatter.c
+++ b/src/gr-recipe-formatter.c
@@ -213,7 +213,7 @@ gr_recipe_parse_instructions (const char *instructions,
                                         num = (num - 32) / 1.8;
                                 }
 
-                                tmp = g_strdup_printf ("%s%d%s%s", prefix, num, unit_str[unit], q + 1);
+                                tmp = g_strdup_printf ("%s%d%s%s", prefix, num, unit_str[user_unit], q + 1);
                                 g_free (step);
                                 step = tmp;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]