<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Unable to backspace over some text (track changes)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=137241#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Unable to backspace over some text (track changes)"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=137241">bug 137241</a>
from <span class="vcard"><a class="email" href="mailto:telesto@surfxs.nl" title="Telesto <telesto@surfxs.nl>"> <span class="fn">Telesto</span></a>
</span></b>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=166137" name="attach_166137" title="Bibisect log">attachment 166137</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=166137&action=edit" title="Bibisect log">[details]</a></span>
Bibisect log
Bisected to:
author Michael Stahl <<a href="mailto:Michael.Stahl@cib.de">Michael.Stahl@cib.de</a>> 2020-06-19 16:32:19 +0200
committer Michael Stahl <<a href="mailto:michael.stahl@cib.de">michael.stahl@cib.de</a>> 2020-06-19 20:50:58
+0200
commit 92dbbf840c1da7628bcdd9e8f67375efc2a2fa14 (patch)
tree 2dcb2e1be891b27cd5619478678d9b6eba3fe464
parent 461e9f2ad21046526c6644136f0abda91b0e4798 (diff)
<a class="bz_bug_link
bz_status_VERIFIED bz_closed"
title="VERIFIED FIXED - TRACK CHANGES: Replacement problem - spaces separated from other characters when replacing a single word by several words"
href="show_bug.cgi?id=127635">tdf#127635</a> 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)
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=92dbbf840c1da7628bcdd9e8f67375efc2a2fa14">https://cgit.freedesktop.org/libreoffice/core/commit/?id=92dbbf840c1da7628bcdd9e8f67375efc2a2fa14</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>