<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Incorrect Formatting Logic"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107857#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Incorrect Formatting Logic"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107857">bug 107857</a>
from <span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
<pre>Heiko: I see it different. Perhaps the problem is clearer, if I describe it
with markup, although that is not the internal representation:
The text has the form
<text:p text:style-name="Standard"><text:span text:style-name="myRed">R
</text:span><text:span text:style-name="myGreen">G </text:span><text:span
text:style-name="myBlue">B </text:span></text:p>
Now I select the G and press key g.
Expected: G has been replaced with g
<text:p text:style-name="Standard"><text:span text:style-name="myRed">R
</text:span><text:span text:style-name="myGreen">g </text:span><text:span
text:style-name="myBlue">B </text:span></text:p>
But I get
<text:p text:style-name="Standard"><text:span text:style-name="myRed">R
g</text:span><text:span text:style-name="myGreen"> </text:span><text:span
text:style-name="myBlue">B </text:span></text:p>
It seems, that LO does a "delete" followed by an "insert" instead of a true
"replace". For an "insert" it is the correct behavior to continue the style of
the previous character, but here a "replace" is intended and the undo names it
"Replace". To get what you want, you have to insert the g after the G and then
go back and delete the G.</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>