summaryrefslogtreecommitdiff
path: root/pango/pango-impl-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-impl-utils.h')
-rw-r--r--pango/pango-impl-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pango-impl-utils.h b/pango/pango-impl-utils.h
index d2420321..bbeca994 100644
--- a/pango/pango-impl-utils.h
+++ b/pango/pango-impl-utils.h
@@ -163,6 +163,9 @@ pango_get_ignorable (gunichar ch)
for (i = 0; i < G_N_ELEMENTS (ignorables); i++)
{
+ if (ch < ignorables[i].ch)
+ return NULL;
+
if (ch == ignorables[i].ch)
return ignorables[i].nick;
}