Bug 152286 - wrong text formatting with copy paste
Summary: wrong text formatting with copy paste
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-29 00:59 UTC by supineblue
Modified: 2023-01-26 04:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example File in which the bug exists (5.81 KB, text/plain)
2022-12-10 04:59 UTC, supineblue
Details

Note You need to log in before you can comment on or make changes to this bug.
Description supineblue 2022-11-29 00:59:47 UTC
Copy text in Times New Roman.
Paste below a paragraph of text in Liberation Mono, italics.
Pasted text has not retained formatting (Times New Roman), instead taking on the formatting of Liberation Mono, italics.

Mint Cinnamon 21
Libreoffice 7.3.7.2 (both pre-installed on Linux Mint, and the downloaded .debs).
Bug appears with opencl on and off.
Comment 1 raal 2022-12-09 16:26:06 UTC
No repro with Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 705b2924a14841883b4a8cac549f7af326d7a185
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Can you attach test file?
Comment 2 supineblue 2022-12-10 04:59:14 UTC
Created attachment 184075 [details]
Example File in which the bug exists

Thanks for reply. Here is a test file. I have added the .txt extension so it would upload, but it is a .docx file type - the .txt extension should be removed.
Comment 3 LeroyG 2022-12-11 13:50:16 UTC
NOT A BUG for me.
There is a character style (Source Text) applied, and when a paragraph is added, the character style extend.
Paste in a paragraph with No Character Style, and Times New Roman will stand.
If you (supineblue) are applying the character styles to complete paragraphs, use instead paragraph styles. This way you will not have this problem.


"Bug" steps:
1. Copy a portion of text in Times New Roman
2. At the end of a paragraph in Liberation Mono, add a new paragraph (press Enter) 
3. Paste (Ctrl+V)

Actual result:
The text is pasted in Liberation Mono

Expected result:
The text is pasted in Times New Roman

Workaround:
4. Undo (Ctrl+Z)
5. Paste again

Version: 7.3.6.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 1; OS: Linux 5.14; UI render: default; VCL: gtk3
Locale: es-MX (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Dieter 2022-12-30 09:12:26 UTC
(In reply to LeroyG from comment #3)
> NOT A BUG for me.
> There is a character style (Source Text) applied, and when a paragraph is
> added, the character style extend.
> Paste in a paragraph with No Character Style, and Times New Roman will stand.
> If you (supineblue) are applying the character styles to complete
> paragraphs, use instead paragraph styles. This way you will not have this
> problem.
Suponeblue, does this explain the actual behaviour and solve your problem?
=> NEEDINFO

I agree, that this is not a bug.
Comment 5 supineblue 2023-01-26 00:45:38 UTC
Yes, you seem to have found the problem with the different formatting. I totally missed this - because I never once changed the character or paragraph formatting, either in the drop down menu or the styles menu. I guess it must have happened when copying text from the web and pasting. Been using MS Word all my life before this year and never once experienced this problem. Need to work out what libreoffice is doing different so can avoid it in future.
Comment 6 QA Administrators 2023-01-26 03:24:22 UTC Comment hidden (obsolete)