[pango: 1/2] Fixes typo in MR GNOME/pango!502 (commit 050e321e) (ct_weight -> pango_weight).




commit fb33863258a3c0fa9e981374dffbfce333c0e50f
Author: Hugo Herbelin <Hugo Herbelin inria fr>
Date:   Tue Oct 4 13:02:00 2022 +0200

    Fixes typo in MR GNOME/pango!502 (commit 050e321e) (ct_weight -> pango_weight).
    
    See #705 and also https://gitlab.gnome.org/GNOME/gtk/-/issues/5226.

 pango/pangocoretext-fontmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index e090bfc47..6e59a4f9d 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -328,7 +328,7 @@ ct_font_descriptor_get_weight (CTFontDescriptorRef desc)
     if (!(value >= ct_weight_min && value <= ct_weight_max))
       {
         i = value > ct_weight_max ? G_N_ELEMENTS (ct_weight_map) - 1 : 0;
-        weight = ct_weight_map[i].ct_weight;
+        weight = ct_weight_map[i].pango_weight;
       }
     else
       {


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