diff options
Diffstat (limited to 'modules/thai/thai-ot.c')
-rw-r--r-- | modules/thai/thai-ot.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/thai/thai-ot.c b/modules/thai/thai-ot.c index b82033bb..23c20190 100644 --- a/modules/thai/thai-ot.c +++ b/modules/thai/thai-ot.c @@ -76,7 +76,7 @@ thai_ot_get_ruleset (PangoFont *font) fc_font = PANGO_FC_FONT (font); face = pango_fc_font_lock_face (fc_font); - g_assert (face != NULL); + g_return_val_if_fail (face != NULL, NULL); info = pango_ot_info_get (face); if (info != NULL) @@ -148,7 +148,7 @@ lao_ot_get_ruleset (PangoFont *font) fc_font = PANGO_FC_FONT (font); face = pango_fc_font_lock_face (fc_font); - g_assert (face != NULL); + g_return_val_if_fail (face != NULL, NULL); info = pango_ot_info_get (face); if (info != NULL) @@ -216,9 +216,6 @@ thai_ot_shape (PangoFont *font, PangoOTRuleset *th_ruleset; PangoOTRuleset *lo_ruleset; - g_return_if_fail (font != NULL); - g_return_if_fail (glyphs != NULL); - th_ruleset = thai_ot_get_ruleset (font); lo_ruleset = lao_ot_get_ruleset (font); |