summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-script.c b/pango/pango-script.c
index 68814984..a1be94e0 100644
--- a/pango/pango-script.c
+++ b/pango/pango-script.c
@@ -415,6 +415,9 @@ pango_language_includes_script (PangoLanguage *language,
g_return_val_if_fail (language != NULL, FALSE);
+ if (!REAL_SCRIPT (script))
+ return TRUE;
+
/* This bsearch could be optimized to occur only once if
* we store the pointer to the PangoScriptForLang in the
* same block as the string value for the PangoLanguage.