Created attachment 190646 [details] Example document from Word 2016 Attached RTF document contains some page breaks and these also change the page orientation. This is opened incorrectly in Writer, the first section break that changes page size+orientation is lost. 1. Open attached document -> 3 pages instead of 4, the page break between page 2 and page 3 is missing. Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: a09b59cdbde2ab92bbbb6737337b74a7a62b17f1 CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: en-US (hu_HU); UI: en-US Calc: threaded If I convert this to DOCX in Word and open it in Writer, the page breaks, page sizes and orientations are correct, since 6.3: https://git.libreoffice.org/core/+/d351d6badc97a6f63366fabb6568459b2cdb3819 author Justin Luth <justin_luth@sil.org> Fri Dec 14 12:20:49 2018 +0300 committer Justin Luth <justin_luth@sil.org> Tue Dec 25 05:32:31 2018 +0100 sw ooxmlimport: landscape <-> portrait ? not a continuous section
Created attachment 190647 [details] The example document in Word and Writer
Created attachment 190648 [details] The example file as docx - this looks good in Writer
Hello Gabor Kelemen, Thank you for reporting the bug. I can confirm that the bug is present in: Version: 7.6.2.1 (X86_64) / LibreOffice Community Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333 CPU threads: 12; OS: Mac OS X 13.5; UI render: Skia/Metal; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
It was only 3 pages long in OOo 3.3 (but with page 3/page 4 combined).
Looks like this is solved in 24.2 since commit: https://cgit.freedesktop.org/libreoffice/core/commit/?id=14d1ec9a26248f2023a697fc4458ec6422a2ae71 author Michael Stahl <michael.stahl@allotropia.de> 2024-02-09 17:51:03 +0100 committer Xisco Fauli <xiscofauli@libreoffice.org> 2024-02-12 14:07:29 +0100 commit 14d1ec9a26248f2023a697fc4458ec6422a2ae71 (patch) tree 9fdc729a72a274826339ccd76884e213c99b5fe0 parent 3af133c23544839bcad6592c910e5f04e8f85c38 (diff) tdf#158983 writerfilter: RTF import: fix page breaks and shape anchors Somehow, not sure why, the added import of \wrapdefault in commit 86c0f58b6f9f392865196606173d1b98a6897f32 caused the page break in fdo55504-1.rtf to get lost.