[pango/no-fontmap-no-fun: 2/2] Check for fontmaps
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/no-fontmap-no-fun: 2/2] Check for fontmaps
- Date: Fri, 14 Jan 2022 16:20:46 +0000 (UTC)
commit d6666371ae35ed897fd1b772b3f8403f0f252509
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 14 11:19:35 2022 -0500
Check for fontmaps
To avoid trivialities, check that our context
has a fontmap, at a strategic place.
Fixes: #658
pango/itemize.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/pango/itemize.c b/pango/itemize.c
index 442fe8e9..01399b7e 100644
--- a/pango/itemize.c
+++ b/pango/itemize.c
@@ -1546,6 +1546,8 @@ pango_itemize_with_font (PangoContext *context,
{
ItemizeState state;
+ g_return_val_if_fail (context->font_map != NULL, NULL);
+
if (length == 0 || g_utf8_get_char (text + start_index) == '\0')
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]