[pango: 1/2] Add check for a NULL font in PangoAnalysis structure
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 1/2] Add check for a NULL font in PangoAnalysis structure
- Date: Wed, 11 Aug 2021 15:40:13 +0000 (UTC)
commit e294634dbb8865d13eb6088343ce876617e840eb
Author: Luca Bacci <luca bacci982 gmail com>
Date: Wed Aug 11 16:07:28 2021 +0200
Add check for a NULL font in PangoAnalysis structure
Fixes: https://gitlab.gnome.org/GNOME/pango/-/issues/592
pango/shape.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]