summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
authorLuca Bacci <luca.bacci982@gmail.com>2021-08-11 16:07:28 +0200
committerLuca Bacci <luca.bacci982@gmail.com>2021-08-11 16:07:28 +0200
commite294634dbb8865d13eb6088343ce876617e840eb (patch)
tree4d0d5f71fbe31e9201946e8670f8e1d6dd64ff57 /pango/shape.c
parent9cf396093dc5eb2f850565ccd7258d64112809d7 (diff)
downloadpango-e294634dbb8865d13eb6088343ce876617e840eb.tar.gz
Add check for a NULL font in PangoAnalysis structure
Fixes: https://gitlab.gnome.org/GNOME/pango/-/issues/592
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/shape.c b/pango/shape.c
index aed028b7..afb1db0d 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -295,7 +295,7 @@ pango_shape_with_flags (const gchar *item_text,
if (flags & PANGO_SHAPE_ROUND_POSITIONS)
{
- if (pango_font_is_hinted (analysis->font))
+ if (analysis->font && pango_font_is_hinted (analysis->font))
{
double x_scale_inv, y_scale_inv;
double x_scale, y_scale;