Bug 156583 - WRITER: Spurious unrequested page style change
Summary: WRITER: Spurious unrequested page style change
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Justin L
URL: https://ask.libreoffice.org/t/footer-...
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Writer-Styles-Page
  Show dependency treegraph
 
Reported: 2023-08-02 13:57 UTC by ajlittoz
Modified: 2025-09-12 16:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Direct formatted text with unwanted page style change (31.36 KB, application/vnd.oasis.opendocument.text)
2023-08-02 13:57 UTC, ajlittoz
Details
landscape.odt: minimal example (7.55 KB, application/vnd.oasis.opendocument.text)
2025-09-12 14:39 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajlittoz 2023-08-02 13:57:02 UTC
Created attachment 188728 [details]
Direct formatted text with unwanted page style change

This bug is a follow on to AskLO question https://ask.libreoffice.org/t/footer-changing/94219

I am not the creator of the faulty document. I only report the bug on behalf of the asker.

The attached document is fully direct formatted (everything is Default Paragraph Style with manually added formatting) except pages are styled MP0. A footer is associated with this style.

1. Select whole text with Ctrl+A
2. Format>Paragraph, change any attribute in Text Flow tab (e.g. request hyphenation or keep with next paragraph)
3. OK

Page style has been changed to Default Page Style (which contains another footer, making visible the change).

Even if document is direct formatted, no unrequested change sould be observed.
Comment 1 Mike Kaganski 2023-08-02 14:34:29 UTC
Repro, with a from-scratch document:

1. Create a new Writer document;
2. Press Ctrl+Enter to introduce a hard page break;
3. Ctrl+Home to return to the very first paragraph;
4. Format->Paragraph, Text Flow tab, Breaks: Insert->Page->Before, [x] With page style:Landscape; [OK]
5. Ctrl+A, Format->Paragraph, Text Flow tab; see that Breaks->Insert is in "undefined" state, and [ ] With page style: is empty.
6. Check Hyphenation->[x] Automatically; [OK]

=> The pages turn from Landscape to the normal portrait-oriented Default Page Style, because the first paragraph's break is cleared.
Comment 2 Stéphane Guillou (stragu) 2023-08-03 10:05:18 UTC
Repro with attachment in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: eef0c5d4d45ba35acfb6d8f7551fe565ca4badaa
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Also in OOo 3.3, so inherited.
Comment 3 QA Administrators 2025-08-03 03:11:20 UTC Comment hidden (obsolete)
Comment 4 ajlittoz 2025-08-14 10:42:36 UTC
Bug still present in 25.2.5.2
Comment 5 Justin L 2025-09-12 14:39:31 UTC
Created attachment 202806 [details]
landscape.odt: minimal example

Nothing special about any particular page change property. The only criteria is VISITING the text flow tab.

The property change could be made on a different tab and still cause an empty SID_ATTR_PARA_MODEL to be included in the return itemset.
Comment 6 Commit Notification 2025-09-12 16:10:47 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7db79c9a75f986b536a045b2efe9409fbd697262

tdf#156583 cui paragrph: no SID_ATTR_PARA_MODEL if INDET pageBreak

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.