[pango/text-transform: 2/4] Use the language we are given



commit 010e2c4eaf660a178e807c356a82ce9e8ec543f3
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 11a1e34a..d598eeff 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1788,6 +1788,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]