summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-17 12:05:34 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-03-17 12:05:34 -0400
commit3241972c4f4d9c1d98d166c38cb0d7b12afb5545 (patch)
treeeb9fc66aa111a335c0f94ca1e60e36c4678bb879 /pango/pango-context.c
parent7c025dc9d4ef396d991c823ed015c34aaf0eb3ae (diff)
downloadpango-3241972c4f4d9c1d98d166c38cb0d7b12afb5545.tar.gz
[pango-context] Fix assertion with enable_fallback=FALSE and no fonts
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 208952d3..9285581f 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1067,6 +1067,9 @@ get_shaper_and_font_foreach (PangoFontset *fontset G_GNUC_UNUSED,
GetShaperFontInfo *info = data;
GSList *l;
+ if (G_UNLIKELY (!font))
+ return FALSE;
+
for (l = info->engines; l; l = l->next)
{
PangoEngineShape *engine = l->data;