diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-10 15:46:06 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-10 15:46:06 +0000 |
commit | 4b5e25a22cc0bb10c60cd43bef394e16f4a11846 (patch) | |
tree | c3960071bd5a79b2a242bb26fbcf3db4f6104bce /pango | |
parent | c73c2d5d0258b0fc6f8408e6c8fce09cd273d20e (diff) | |
parent | 279bd5256b17ed68d50fbaaf7df60f189de33c96 (diff) | |
download | pango-4b5e25a22cc0bb10c60cd43bef394e16f4a11846.tar.gz |
Merge branch 'fix-another-crash' into 'master'
itemize: Work around gtk2 brokenness
Closes #480
See merge request GNOME/pango!198
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c index 7772878f..bebe804a 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -1566,7 +1566,7 @@ pango_itemize_with_base_dir (PangoContext *context, g_return_val_if_fail (length >= 0, NULL); g_return_val_if_fail (length == 0 || text != NULL, NULL); - if (length == 0) + if (length == 0 || g_utf8_strlen (text, length) == 0) return NULL; itemize_state_init (&state, context, text, base_dir, start_index, length, |