Created attachment 202090 [details] RTF with section break with landscape orientation on page 3 In LibreOffice version 7.6.1.2, the attached RTF document was correctly rendered, including the section break with page orientation change (portrait to landscape). In more recent versions, this feature is broken: the page orientation change is ignored, and all sections remain in portrait mode. The RTF file still works perfectly in Microsoft Word, which confirms the syntax is valid. The relevant RTF code for the section break includes: \sect\sectd\lndscpsxn\pgwsxn16839\pghsxn11907\marglsxn850\margrsxn850\margtsxn850\margbsxn850 In Word, this correctly applies a landscape orientation to the section. In LibreOffice (current versions), the orientation remains portrait. This appears to be a regression introduced after 7.6.1.2. Steps to reproduce: Open the attached RTF file in LibreOffice 7.6.1.2 → orientation switches as expected. Open the same file in LibreOffice 24.x or later → landscape orientation is ignored. Expected behavior: LibreOffice should respect \lndscpsxn and \pgwsxn/\pghsxn section properties and apply the correct landscape orientation for the relevant pages. Actual behavior: Orientation change is ignored; all pages are rendered in portrait mode regardless of section settings.
No repro using Version: 25.8.0.2 (X86_64) Build ID: 80a8bc2ef75d415a197e282da0ebf917315d5e24 CPU threads: 24; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: de-DE (en_US); UI: en-US Calc: CL threaded
Fixed by commit a2a88f0073bdd5119745679daa61469e87002579.
Thank you for checking. I confirm that with the latest official release version 25.2.5, the issue is still present — the section break with page orientation change is not correctly applied when opening the RTF file. However, I have now tested the pre-release version 25.8.0, and I can confirm that the problem is resolved in that build: the landscape section is correctly rendered. Thanks again for your support, and I'm glad to see this has been fixed in the upcoming version!