Bug 165056 - FILEOPEN RTF Page with empty paragraph after odd page break is lost
Summary: FILEOPEN RTF Page with empty paragraph after odd page break is lost
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: RTF-Opening
  Show dependency treegraph
 
Reported: 2025-02-05 10:45 UTC by Gabor Kelemen (allotropia)
Modified: 2025-04-07 16:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (40.56 KB, application/msword)
2025-02-05 10:45 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the document in Word 2016 and Writer master (40.56 KB, application/msword)
2025-02-05 10:45 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the document in Word 2016 and Writer master (61.91 KB, image/png)
2025-02-17 15:17 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2025-02-05 10:45:27 UTC
Created attachment 198993 [details]
Example file from Word 2016

Attached document contains an Odd page break then the next page has only a single empty paragraph.
When opened in Writer this page is lost, reducing total number of pages from 3 to 1.

1. Open attached document
-> misses the automatically inserted second page and the third page with a single empty paragraph on it

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 08e40accb3fabe676746c40797efc20eaa218801
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Seems to have started in 24.2, before it was 3 pages:

https://git.libreoffice.org/core/+/15b886f460919ea3dce425a621dc017c2992a96b%5E%21

author	Michael Stahl <michael.stahl@allotropia.de>	Fri Nov 10 17:04:27 2023 +0100
committer	Michael Stahl <michael.stahl@allotropia.de>	Thu Nov 16 10:19:49 2023 +0100
tree 791d8816dbc6e7e0f05ccb3c6ec7494ec0f6f845
parent 2f42d8acd2d06f848c9e680c42a0f7834a9a641f [diff]

tdf#153194 writerfilter: RTF import: \spltpgpar
Comment 1 Gabor Kelemen (allotropia) 2025-02-05 10:45:57 UTC Comment hidden (obsolete)
Comment 2 m_a_riosv 2025-02-06 01:24:20 UTC
Sorry @Gabor, but there is no screenshot, both attachments are the same.
Comment 3 mikhail.machine 2025-02-11 07:09:32 UTC Comment hidden (obsolete)
Comment 4 Gabor Kelemen (allotropia) 2025-02-17 15:17:08 UTC
Created attachment 199245 [details]
Screenshot of the document in Word 2016 and Writer master

Sorry, here is the correct screenshot.
Comment 5 m_a_riosv 2025-02-17 21:59:48 UTC
Reproducible
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b4059c4b9ae2230d9c6d722d457dca2216ddd581
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (es_ES); UI: en-GB
Calc: CL threaded