[pango/fix-asciid-call] Fix a g_ascii_formatd call




commit 4f96bce3eefcec03e3618326fb5f7771b05a7b6d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 18 12:30:38 2022 -0500

    Fix a g_ascii_formatd call
    
    We were passing a format specifier that starts
    with ' ', which some implementations of that API
    don't like.
    
    Fixes: #659

 pango/pango-attributes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 696f9ba1..60d14706 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -2646,7 +2646,7 @@ attr_print (GString        *str,
   else if ((flt = pango_attribute_as_float (attr)) != NULL)
     {
       char buf[20];
-      g_ascii_formatd (buf, 20, " %f", flt->value);
+      g_ascii_formatd (buf, 20, "%f", flt->value);
       g_string_append_printf (str, " %s", buf);
     }
   else if ((font = pango_attribute_as_font_desc (attr)) != NULL)


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