diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-02-21 10:47:30 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-02-21 10:47:30 +0000 |
commit | e0babd9ed3f94843d2d8833592bd55895769c009 (patch) | |
tree | 764c7f23486a5d0ce9b4e86fc664870867402ebb /modules/arabic | |
parent | f3f321992201a5daa52bc44042858b2a9992b672 (diff) | |
download | pango-e0babd9ed3f94843d2d8833592bd55895769c009.tar.gz |
Bug 331723 – shapers should not crash on failures
2006-02-21 Behdad Esfahbod <behdad@gnome.org>
Bug 331723 – shapers should not crash on failures
* modules/*/*-fc.c: Return instead of g_return_if_fail when
face == NULL.
* pango/pango-engine.h (PangoEngineShape): Document that a shaper
should return an empty glyph string on failure.
Diffstat (limited to 'modules/arabic')
-rw-r--r-- | modules/arabic/arabic-fc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/arabic/arabic-fc.c b/modules/arabic/arabic-fc.c index 0b3faefa..e6fc5ef4 100644 --- a/modules/arabic/arabic-fc.c +++ b/modules/arabic/arabic-fc.c @@ -274,7 +274,8 @@ arabic_engine_shape (PangoEngineShape *engine, fc_font = PANGO_FC_FONT (font); face = pango_fc_font_lock_face (fc_font); - g_return_if_fail (face != NULL); + if (!face) + return; ruleset = get_ruleset (face); if (!ruleset) |