summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-01-25 17:12:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-01-25 20:25:53 +0000
commit15c0e82005254e9da0fcd905379e9eca85571bf9 (patch)
tree5aa2593c21750d77423f56584eec76fd187ca480 /sdext
parentca512d0323c261d90559ddf6df561300cb048173 (diff)
sw: revert ToX hyperlinks to LO 4.3 behaviour
Commit 94b296d5416dd71d721ad16216b50bce79e3dc04 changed this to potentially insert multiple overlapping hyperlink items. Unfortunately Writer can only have one RES_TXTATR_INETFMT on any given position in the paragraph, so the hyperlink hints inevitably overwrite each other. Revert this to do it the same way as the old code in LO 4.3 did: match the last unmatched link-start with the first link-end, and ignore all the link-start before the matching one, as well as the link-end after the matching one. This should prevent surprising formatting changes on index update, including entries spontaneously turning green, and there is no reason why the result of the new way is objectively better than the old one. Change-Id: I55be9c212c473908428fa8bd6487d136343fe852 (cherry picked from commit 68f7be01a78a5bad56ddd94c04764131676d6cc0) Reviewed-on: https://gerrit.libreoffice.org/33550 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext')
0 files changed, 0 insertions, 0 deletions