[pango/glyph-extents-fixes] cairo: Small fixup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/glyph-extents-fixes] cairo: Small fixup
- Date: Sun, 31 Oct 2021 01:39:52 +0000 (UTC)
commit ab776f328ba3540f6607ea0a9bc72a57b607b9ac
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 30 21:37:15 2021 -0400
cairo: Small fixup
cf_priv->scaled_font is initialized on demand, it may
be NULL. So better call the getter. This was showing
up as failure in the asan test in ci.
pango/pangocairo-font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index dacc61ab..503f863b 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -693,7 +693,7 @@ get_space_extents (PangoCairoFontPrivate *cf_priv,
cairo_text_extents_t extents;
c[0] = hexdigits[i];
- cairo_scaled_font_text_extents (cf_priv->scaled_font, c, &extents);
+ cairo_scaled_font_text_extents (_pango_cairo_font_private_get_scaled_font (cf_priv), c, &extents);
hex_width += extents.width;
}
width = pango_units_from_double (hex_width / 16);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]