diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-07-10 03:16:53 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-07-10 03:16:53 +0000 |
commit | 96bcf49c1b0d7a0dc82d2dd3b20ca340100be841 (patch) | |
tree | 55a89746326e213619b25ba10e1f07becb50cca7 /pango/pango-attributes.c | |
parent | 51bb38de1cc7b7cafe93376a315c8f646c07277b (diff) | |
parent | 044424c80bc8b3e61bfa6d158dec559decc2fce5 (diff) | |
download | pango-96bcf49c1b0d7a0dc82d2dd3b20ca340100be841.tar.gz |
Merge branch 'attr-list-change-fix' into 'master'
Remove an erroneous early exit
Closes #564
See merge request GNOME/pango!372
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r-- | pango/pango-attributes.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c index 8b1d857b..fd0df205 100644 --- a/pango/pango-attributes.c +++ b/pango/pango-attributes.c @@ -1661,14 +1661,12 @@ pango_attr_list_change (PangoAttrList *list, } if (!inserted) - { - /* we didn't insert attr yet */ - pango_attr_list_insert (list, attr); - return; - } + /* we didn't insert attr yet */ + pango_attr_list_insert (list, attr); /* We now have the range inserted into the list one way or the - * other. Fix up the remainder */ + * other. Fix up the remainder + */ /* Attention: No i = 0 here. */ for (i = i + 1, p = list->attributes->len; i < p; i++) { @@ -1694,9 +1692,8 @@ pango_attr_list_change (PangoAttrList *list, else { /* Trim the start of this attribute that it begins at the end - * of the new attribute. This may involve moving - * it in the list to maintain the required non-decreasing - * order of start indices + * of the new attribute. This may involve moving it in the list + * to maintain the required non-decreasing order of start indices. */ int k, m; |