After pasting formatted text in Writer, then undoing, the format of the pasted text remains at the cursor
Steps to reproduce
1. Create two blank documents. In the first document, type "abc". In the second document, type "123", then apply a text highlight to the "123"
2. Copy the "123" and paste it in the first document immediately after the "abc"
4. Type anything
The newly typed text will be highlighted. The undo should also reset the format under the cursor
I typically meet this issue when pasting text, then deciding I should have pasted as unformatted text, undoing, and pasting again as unformatted text - after which the pasted text still has the undesired formatting applied because it had become the current format under the cursor after the first paste
Reproduced with LO 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11 - Ubuntu 12.04 x86
Also with AOO 4.1.0, seems inherited from OOO
Same result with pasting Bold & Underlined text, not try yet other formats.
*** This bug has been marked as a duplicate of bug 50713 ***