summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-04-17 08:34:27 +0200
committerTimm Bäder <mail@baedert.org>2020-06-08 19:17:17 +0200
commit4289a208b8b1a67fb732c9f44e5eef0825f8c430 (patch)
treeb8eba7cf0d132fbbe0da1c85b8ee27938c7797b3 /pango/break.c
parent17248221740fa476986248f8103a333b0e23db49 (diff)
downloadpango-4289a208b8b1a67fb732c9f44e5eef0825f8c430.tar.gz
break: Only call break_attrs if we really have attributes
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c2
1 files changed, 1 insertions, 1 deletions
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;