summaryrefslogtreecommitdiffstats
path: root/pyuno/Library_pyuno_wrapper.mk
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-06-19 16:32:19 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-06-19 19:50:41 +0200
commit398ba26077f9029bdf6f7378bfc9ce8376b6f02d (patch)
tree43786abc6480e58ef8e871a8c26e1953bac8fd73 /pyuno/Library_pyuno_wrapper.mk
parentUpdate git submodules (diff)
downloadcore-398ba26077f9029bdf6f7378bfc9ce8376b6f02d.tar.gz
core-398ba26077f9029bdf6f7378bfc9ce8376b6f02d.zip
tdf#127635 sw_redlinehide: put point at the end of deletion
SwWrtShell::Insert() is called with a selection, so it first calls DeleteAndJoin() to get rid of the selection. With redlining enabled, this leaves the cursor as it was before, so if the point was at the start it still is at the start, so the following Insert will insert at the start of the selection. But then AutoCorrect wants to do things and it uses TextFrameIndex and ViewToModelPos and gets a result at the end of the delete redline, while the cursor remains at the start of the delete redline. Avoid this by swapping the selection after DeleteAndJoin() (and also DeleteRange() for consistency) so that insertion happens at end of redline (swap "above" DoWithBreaks because it creates temporary PaMs). (regression from sw_redlinehide) Change-Id: Ib5b0475f610c2ce426e9202e9d325dd0cc451d5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96743 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'pyuno/Library_pyuno_wrapper.mk')
0 files changed, 0 insertions, 0 deletions