Bug 152368 - [RTF] Paste special as RTF adds the formatting of the following text
Summary: [RTF] Paste special as RTF adds the formatting of the following text
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Paste
  Show dependency treegraph
 
Reported: 2022-12-04 14:27 UTC by LeroyG
Modified: 2023-05-06 12:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample file to test with. (10.79 KB, application/vnd.oasis.opendocument.text)
2022-12-04 14:27 UTC, LeroyG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LeroyG 2022-12-04 14:27:34 UTC
Created attachment 183984 [details]
Sample file to test with.

A word (aaabbccc) with different direct formatting (bold, normal, underline). See the sample file.
1. Copy some text without formatting (ddd).
2. Select "bbb".
3. Paste special as RTF.

Actual behavior:
"ddd" replaces "bbb", gets the bold from "aaa", and the underline from "ccc".

Expected behavior:
"ddd" replaces "bbb", and gets the bold from "aaa".

If the formatting is applied with styles, the behavior is as expected.

Version: 7.3.7.2 (x64) / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: es-MX (es_ES); UI: en-US
Calc: CL

A bit related question: https://ask.libreoffice.org/t/formatting-of-pasted-text-in-writer/84755
Comment 1 raal 2022-12-09 16:33:11 UTC
Confirm 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
and Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 2 BogdanB 2023-05-06 12:04:27 UTC
Also in
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0f2581204a70038ed7ca78089a9bd96d158e02c0
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded