summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-17 22:36:20 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-17 23:32:04 -0500
commite14297e1f1fe534d4511d08826acdd40a00c2462 (patch)
tree7541bb338377f758f1eb3225e3a8a330b072b85b /pango/pango-attributes.h
parent3fea9968434c7d6c0b73c481d27d5e2cfe71fda1 (diff)
downloadpango-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