summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-09 20:01:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-10 01:08:38 -0500
commit807b2f90766aff183f1239b553ac7df50e98306b (patch)
tree534102b20dd20aace46c8e5696f6b31d235d619c
parent0a03d42bc8da3670b69838ad587af5dcfbb04062 (diff)
downloadpango-807b2f90766aff183f1239b553ac7df50e98306b.tar.gz
fonts: Fix get_face default impl
-rw-r--r--pango/fonts.c2
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];
}