From 4289a208b8b1a67fb732c9f44e5eef0825f8c430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 17 Apr 2020 08:34:27 +0200 Subject: break: Only call break_attrs if we really have attributes --- pango/break.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pango/break.c b/pango/break.c index 26a79873..58bf2f90 100644 --- a/pango/break.c +++ b/pango/break.c @@ -1597,7 +1597,7 @@ tailor_break (const char *text, res = break_script (text, length, analysis, attrs, attrs_len); - if (item_offset >= 0) + if (item_offset >= 0 && analysis->extra_attrs) res |= break_attrs (text, length, analysis->extra_attrs, item_offset, attrs, attrs_len); return res; -- cgit v1.2.1