Bug 162774 - Page Break disappears after pasting something from PowerPoint.
Summary: Page Break disappears after pasting something from PowerPoint.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2024-09-03 17:23 UTC by smsourov.bd
Modified: 2024-11-14 17:36 UTC (History)
1 user (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 smsourov.bd 2024-09-03 17:23:57 UTC
Description:
To reproduce the bug, Microsoft PowerPoint is needed. The bug can be reproduced by using the installed program and online free version.

Steps to Reproduce:
Case 1:
1. Open PowerPoint and create a new slide.
2. Give a slide title, copy it and exit PowerPoint.
3. Open Writer and open a new document.
4. Insert a page break and paste the copied text.(Nothing special will happen.)
5. Do the step 4 again.

Case 2:
1. Open PowerPoint and create a new slide.
2. Give a slide title, copy it and exit PowerPoint.
3. Open Writer and open a new document.
4. Write something by typing.
5. Insert a page break and paste the copied text.



Actual Results:
In step 5, after pasting the copied text, the last page break disappears but the copied text is pasted.

Expected Results:
The last page break should not disappear and the copied text should be pasted.


Reproducible: Always


User Profile Reset: No

Additional Info:
Steps for workaround:
1. Undo
2. Redo

This is a weird bug. This may be specific to Windows OS only.
Comment 1 Buovjaga 2024-11-14 17:36:21 UTC
I reproduce with office.com, just copying the characters from the title text. This has behaved more or less in the same way since 3.5. However, before 6.2 and commit baf3cec77db5f03200c038101e77720fae2ffba3 the first page break was immediately eaten by the paste.

The commit message:
tdf#113877 Insert doc: merge list into text with specifc style

When inserting document, in the current position the text could have custom
style but really it is the same Standard style. Therefore we should not
merge first inserted node into the insert position and just overwrite
style in the insert position with text style from the inserted node.

A small note: in 24.2 there was a period where the text was pasted without formatting. This was fixed in commit d33d3bbd9fb021c9ef15689f4e8e5b9898541e70

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3b267b65d24616fe49ca1410b123d186a59541d0
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 14 November 2024