Bug 103009 - FORMATTING: After Paste - Undo - Paste Special Unformatted text, LO keep the old formatting
Summary: FORMATTING: After Paste - Undo - Paste Special Unformatted text, LO keep the ...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 12:49 UTC by Ákos
Modified: 2016-10-06 13:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
steps to reproduce (292.49 KB, video/webm)
2016-10-06 09:06 UTC, Ákos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ákos 2016-10-05 12:49:54 UTC
Description:
After I paste a formatted text in the document, with Undo I undo the paste, and paste the text with Paste Special - Unformatted text, the newly pasted text is formatted, the LO keep the firstly pasted text format in paragraph end character.

Steps to Reproduce:
1. Open two new Writer document
2. In the first enter "test" and format it as Bold
3. Copy the text
4. Paste it in the second document
5. Select Edit - Undo
6. Select Edit - Paste Special - Unformatted text - OK

Actual Results:  
The pasted Unformatted text is bold

Expected Results:
The pasted text will be default style, without bold.


Reproducible: Always

User Profile Reset: Yes

Additional Info:
LibreOffice 5.2.1.2, Windows 10 (64bit Ent)


User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 V Stuart Foote 2016-10-05 16:15:48 UTC
On Windows 10 Pro 64-bit (1607) en-US with
Version: 5.2.2.2 (x64)
Build ID: 8f96e87c890bf8fa77463cd4b640a2312823f3ad
CPU Threads: 8; OS Version: Windows 6.19; UI Render: GL; 
Locale: en-US (en_US); Calc: group

Can not confirm following STR. The paste -> Unformatted text correctly removes the bold formatting in the second document. A second default Paste retains the bold formatting.

WFM
Comment 2 Ákos 2016-10-06 08:57:43 UTC
CORRECTION:

Steps to Reproduce:
1. Open two new Writer document
2. In the first enter "test" and format it as Bold
2. In the second enter "test"
3. Copy the text from first
4. Paste it in the second at the and of the line
5. Select Edit - Undo
6. Select Edit - Paste Special - Unformatted text - OK
Comment 3 Ákos 2016-10-06 09:06:09 UTC
Created attachment 127834 [details]
steps to reproduce
Comment 4 V Stuart Foote 2016-10-06 13:03:26 UTC
When you undo, the Bold direct formatting of the first paste remains applied at the end of the paragraph. When you then Paste Special -> Unformatted text you are pasting unformatted text into a spot with bold direct formatting applied.

Be sure to remove the direct formatting from undo of the initial paste before pasting unformatted. Or another way, pasting unformatted text into a word or paragraph with direct formatting applied will pickup the direct formatting applied at that spot.
Comment 5 Ákos 2016-10-06 13:06:26 UTC
But with undo I expect that the direct formatting undo too.
With undo I expect in general, that all changes made before is undo.
Comment 6 V Stuart Foote 2016-10-06 13:44:03 UTC
Maybe, but that would be an issue with UNDO logic--not the issue here. Pasting unformatted text works as expected.
Comment 7 V Stuart Foote 2016-10-06 13:52:42 UTC
Issue with an UNDO not clearing format is a corner case occurring at the end of a paragraph. Reported as see also bug 36958