summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-10 15:46:06 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-06-10 15:46:06 +0000
commit4b5e25a22cc0bb10c60cd43bef394e16f4a11846 (patch)
treec3960071bd5a79b2a242bb26fbcf3db4f6104bce /pango
parentc73c2d5d0258b0fc6f8408e6c8fce09cd273d20e (diff)
parent279bd5256b17ed68d50fbaaf7df60f189de33c96 (diff)
downloadpango-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.c2
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,