[pango/log-attr-language] Use the language we are given




commit b446a49bbd374fb1fca7c0f0fea5fc73dd20f4c9
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jul 13 23:20:47 2019 -0400

    Use the language we are given
    
    pango_get_log_attrs was not using its language
    argument at all. Pass it into pango_default_break
    as part of the PangoAnalysis struct.

 pango/break.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pango/break.c b/pango/break.c
index 58e039e5..9690d510 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1863,6 +1863,7 @@ pango_get_log_attrs (const char    *text,
   g_return_if_fail (log_attrs != NULL);
 
   analysis.level = level;
+  analysis.language = language;
 
   pango_default_break (text, length, &analysis, log_attrs, attrs_len);
 


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