diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-03-17 12:05:34 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-03-17 12:05:34 -0400 |
commit | 3241972c4f4d9c1d98d166c38cb0d7b12afb5545 (patch) | |
tree | eb9fc66aa111a335c0f94ca1e60e36c4678bb879 /pango/pango-context.c | |
parent | 7c025dc9d4ef396d991c823ed015c34aaf0eb3ae (diff) | |
download | pango-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.c | 3 |
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; |