Bug 160759

Summary: Header Removed and Footer Hidden After Pasting Text From Wine Running Windows Program in Ubuntu
Product: LibreOffice Reporter: Steve Williams <slw1jw>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: slw1jw, stephane.guillou
Priority: medium    
Version: 24.2.2.2 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Copy / paste text from native program running in Ubuntu
Copy / paste text from program running in Ubuntu via Wine

Description Steve Williams 2024-04-21 07:14:42 UTC
Description:
My desktop is Ubuntu 22.04.4. Since upgrading to LibreOffice 24.2.2.2 and using Writer, whenever pasting (Ctrl+V) text copied from a Windows program running in Wine (9.0), the header is removed and the footer is hidden. Performing a Ctrl+Z does not get them back. If I Paste Special--Unformatted text the header/footer stay intact. However, I want to keep the formatting when pasting. Text pasted from native Linux programs do not appear to affect the header/footer.

Steps to Reproduce:
1.Copy text from a Windows program running in Wine/Ubuntu 22.04.4
2.Paste (Ctrl+V) in Writer running in Ubuntu


Actual Results:
Writer header is removed and footer is hidden. At least I don't see the footer on the page and the Insert pull-down menu -- Header and Footer -- Footer -- Default Page Style is checked.

Expected Results:
Formatted text is pasted into the Writer document and the header and footer remain.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 24; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded

I used to have LibreOffice installed via the PPA. However, I completely removed it and installed it via Flatpak. The results are the same with both versions.
Comment 1 Steve Williams 2024-04-21 07:53:08 UTC
Created attachment 193781 [details]
Copy / paste text from native program running in Ubuntu

Part one of two with copy/paste text.
Comment 2 Steve Williams 2024-04-21 07:55:46 UTC
Created attachment 193782 [details]
Copy / paste text from program running in Ubuntu via Wine

Part two of two with copy/paste text.
Comment 3 Stéphane Guillou (stragu) 2024-04-23 01:05:06 UTC
Thanks for the report. This is most likely the same as bug 160139, marking as duplicate.

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