diff options
author | Timm Bäder <mail@baedert.org> | 2020-04-17 08:22:04 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-06-08 19:16:57 +0200 |
commit | cc5b6c7af26bbeb7862a978606ed4ac17b82c233 (patch) | |
tree | 16f22d2fb905d6dca17c3b4f998988c59a6ce910 | |
parent | a79e38a784430af97c6b9423f63fc89f90482da2 (diff) | |
download | pango-cc5b6c7af26bbeb7862a978606ed4ac17b82c233.tar.gz |
break_attrs: Bail out if we have no ALLOW_BREAKS attributes
-rw-r--r-- | pango/break.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/break.c b/pango/break.c index 432ff493..2f5ff02e 100644 --- a/pango/break.c +++ b/pango/break.c @@ -1919,6 +1919,12 @@ break_attrs (const char *text, pango_attr_list_insert (&list, pango_attribute_copy (attr)); } + if (!_pango_attr_list_has_attributes (&list)) + { + _pango_attr_list_destroy (&list); + return FALSE; + } + _pango_attr_list_get_iterator (&list, &iter); do { PangoAttribute *attr; |