diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-03-29 19:18:44 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-03-29 19:18:44 +0000 |
commit | ce13859046ac37ba94c6a5727c221b0b97e90a9e (patch) | |
tree | 263f6548706be5acbd6ba91a71252904cb21c757 /pango/pango-impl-utils.h | |
parent | 5ccc0c7aa5de2667a5e0da8c35387eb662c3edff (diff) | |
parent | b86ded710d391b78842c607962d9a2281596b862 (diff) | |
download | pango-ce13859046ac37ba94c6a5727c221b0b97e90a9e.tar.gz |
Merge branch 'misc-speedups' into 'master'
Misc speedups
See merge request GNOME/pango!306
Diffstat (limited to 'pango/pango-impl-utils.h')
-rw-r--r-- | pango/pango-impl-utils.h | 3 |
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; } |