diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-17 22:36:20 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-17 23:32:04 -0500 |
commit | e14297e1f1fe534d4511d08826acdd40a00c2462 (patch) | |
tree | 7541bb338377f758f1eb3225e3a8a330b072b85b /pango/pango-attributes.h | |
parent | 3fea9968434c7d6c0b73c481d27d5e2cfe71fda1 (diff) | |
download | pango-fix-attribute-splicing.tar.gz |
Fix a corner-case of pango_attr_list_splicefix-attribute-splicing
When the 'other' list contains attributes that are
unlimited or exceed the range given to pango_attr_list_splice,
those attributes were 'leaking' out of the range. The visible
effect of this is that the underline of preedit text extends
outside the preedit in some GTK entries.
Fix this by clipping the inserted attributes to the range.
The documentation is not very explicit about this, but I believe
this is the expected behavior.
Tests included.
Diffstat (limited to 'pango/pango-attributes.h')
0 files changed, 0 insertions, 0 deletions