summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/itemize.c2
1 files changed, 2 insertions, 0 deletions
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;