Bug 158984 - Paste special as Rich Text Format (RTF) to shape loses font in Writer
Summary: Paste special as Rich Text Format (RTF) to shape loses font in Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Paste
  Show dependency treegraph
 
Reported: 2024-01-02 17:36 UTC by Regina Henschel
Modified: 2024-03-23 18:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Copy&Paste material (13.93 KB, application/vnd.oasis.opendocument.text)
2024-01-02 17:36 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2024-01-02 17:36:10 UTC
Created attachment 191707 [details]
Copy&Paste material

Open attached file. Mark the first lines and copy them to clipboard.
For each of the shapes do this:
   Select shape and bring it in text edit mode (F2 or Enter) or double-click shape to bring it into text edit mode.
   Paste clipboard to shape using Paste Special "Rich Text Formatting (RTF)".

Notice, that
a) The font settings from paragraph style are lost.
b) The text in the shape has a rendering with wrong character distances.

Pasting the clipboard to a shape in Draw shows the expected behavior:
The first line has no own font setting and gets the font, which is specified in the default shape style.
The second and third lines get font "Courier New".
The third line is right aligned.

Pasting to a shape in Draw shows, that the clipboard contains the needed information. So this is a problem with pasting the clipboard to a shape in Writer.
Comment 1 m_a_riosv 2024-01-02 21:29:46 UTC
Reproducible with:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
and
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 78027c68397f26aec9051b82388cd7452ec66e3d
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded