[Libreoffice-ux-advise] [Bug 107857] Incorrect Formatting Logic

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 20 13:13:32 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=107857

--- Comment #11 from Regina Henschel <rb.henschel at t-online.de> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list