Bug 160045 - Writer Header cleared when pasting RTF
Summary: Writer Header cleared when pasting RTF
Status: RESOLVED DUPLICATE of bug 160139
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Header-Footer
  Show dependency treegraph
 
Reported: 2024-03-05 12:19 UTC by Adomas Venčkauskas
Modified: 2024-06-11 05:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adomas Venčkauskas 2024-03-05 12:19:01 UTC
Description:
The Header section of the page gets cleared when pasting text as RTF anywhere in the doc.

Steps to Reproduce:
1. Insert any text into the header.
2. Copy it
3. Paste with Ctrl-Shift-V, select RTF
4. Header text disappears

Actual Results:
Header is cleared

Expected Results:
Text should be pasted and header not cleared


Reproducible: Always


User Profile Reset: No

Additional Info:
It does not matter where the RTF text comes from, or whether it is pasted in the header or some place else.

May be related to https://bugs.documentfoundation.org/show_bug.cgi?id=159385
Comment 1 breadsathwik 2024-03-06 00:52:36 UTC
Hello Adomas,

Thank you for reporting the bug. I can confirm that the bug is present in writer.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e939685f9c6918830bd3097062790bfccbce937e
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 2 sleepyhead.km+bugzilla 2024-04-07 08:13:55 UTC
If anyone is wondering: this issue occurs when using the Zotero plugin for managing your citations as well.
Comment 3 dave whitman 2024-05-03 06:23:39 UTC
Footer also disappers
Comment 4 dave whitman 2024-05-22 05:30:16 UTC
Just updated to: Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 12; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: threaded

When RTF text is pasted the text disappears from the header
although now the header remains as well as the dividing line from the text!
Comment 5 Buovjaga 2024-06-09 15:23:39 UTC
(In reply to dave whitman from comment #4)
> Just updated to: Version: 24.2.3.2 (X86_64) / LibreOffice Community
> Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
> CPU threads: 12; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL:
> win
> Locale: en-GB (en_GB); UI: en-US
> Calc: threaded
> 
> When RTF text is pasted the text disappears from the header
> although now the header remains as well as the dividing line from the text!

Sounds like the commit toward bug 160139 fixed the header being turned off.
Comment 6 Stéphane Guillou (stragu) 2024-06-11 05:46:35 UTC
(In reply to Adomas Venčkauskas from comment #0)
> Steps to Reproduce:
> 1. Insert any text into the header.
> 2. Copy it
> 3. Paste with Ctrl-Shift-V, select RTF
> 4. Header text disappears
> 
> Actual Results:
> Header is cleared
This also started at:

author	Tomaž Vajngerl	2023-11-28 13:46:21 +0900
commit 4b0fa253a4540f5461397815d290586f9ddabe61
tdf#136472 adjust ooxml import to handle first header/footer

Let's mark as duplicate.

*** This bug has been marked as a duplicate of bug 160139 ***