summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-11 15:40:11 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-11 15:40:11 +0000
commit3a0a8c4b1d915537749a84946463b58c3cc3ebdc (patch)
tree4d0d5f71fbe31e9201946e8670f8e1d6dd64ff57
parent9cf396093dc5eb2f850565ccd7258d64112809d7 (diff)
parente294634dbb8865d13eb6088343ce876617e840eb (diff)
downloadpango-3a0a8c4b1d915537749a84946463b58c3cc3ebdc.tar.gz
Merge branch 'fix-issue-592' into 'main'
Add check for a NULL font in PangoAnalysis structure Closes #592 See merge request GNOME/pango!405
-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;