[pango/wip/baedert/for-master] break: Only call break_attrs if we really have attributes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/wip/baedert/for-master] break: Only call break_attrs if we really have attributes
- Date: Fri, 17 Apr 2020 06:36:42 +0000 (UTC)
commit 52e9f387dad03405ab2380d3a473078f68f1fe3d
Author: Timm Bäder <mail baedert org>
Date: Fri Apr 17 08:34:27 2020 +0200
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 d02185cc..f79490b1 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1606,7 +1606,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]