summaryrefslogtreecommitdiff
path: root/modules/hebrew
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-02-21 10:47:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-02-21 10:47:30 +0000
commite0babd9ed3f94843d2d8833592bd55895769c009 (patch)
tree764c7f23486a5d0ce9b4e86fc664870867402ebb /modules/hebrew
parentf3f321992201a5daa52bc44042858b2a9992b672 (diff)
downloadpango-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/hebrew')
-rw-r--r--modules/hebrew/hebrew-fc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/hebrew/hebrew-fc.c b/modules/hebrew/hebrew-fc.c
index dcb45b40..8b6ae03c 100644
--- a/modules/hebrew/hebrew-fc.c
+++ b/modules/hebrew/hebrew-fc.c
@@ -312,7 +312,8 @@ hebrew_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)