diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-01-09 20:01:29 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-10 01:08:38 -0500 |
commit | 807b2f90766aff183f1239b553ac7df50e98306b (patch) | |
tree | 534102b20dd20aace46c8e5696f6b31d235d619c /pango | |
parent | 0a03d42bc8da3670b69838ad587af5dcfbb04062 (diff) | |
download | pango-807b2f90766aff183f1239b553ac7df50e98306b.tar.gz |
fonts: Fix get_face default impl
Diffstat (limited to 'pango')
-rw-r--r-- | pango/fonts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index dffdca0c..1f0ee626 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -2462,7 +2462,7 @@ pango_font_family_real_get_face (PangoFontFamily *family, pango_font_family_list_faces (family, &faces, &n_faces); face = NULL; - if (name == NULL) + if (name == NULL && n_faces > 0) { face = faces[0]; } |