Bug 166495 - Changing page numbering of a page break removes the page break
Summary: Changing page numbering of a page break removes the page break
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Paragraph-Dialog
  Show dependency treegraph
 
Reported: 2025-05-07 16:01 UTC by Gabor Kelemen (allotropia)
Modified: 2025-05-08 10:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example 3pg loremipsum file (51.68 KB, application/vnd.oasis.opendocument.text)
2025-05-07 16:01 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-05-07 16:01:05 UTC
Created attachment 200694 [details]
Example 3pg loremipsum file

When a page break is inserted and the page numbering is set, then modified, closing the dialog makes the page break disappear entirely.

1. Open attached file
2. Scroll to the top of the second page, press Ctrl-Enter after "PAGEBREAK HERE"
3. Open the floating menu between the two pages, select "Edit Page break"
4. Enable "With page style" and set "Page number" to 5. Press OK.
5. Put the cursor into the "He heard quiet steps behind him" paragraph of the third page, to have the bad behavior triggered (if the cursor is in the empty paragraph inserted for the page break, then it works)
6. Open the floating menu between the two pages, select "Edit Page break"
7. Set "Page number" to a different value. Press OK.
-> the page break is gone.

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

seems to have started in 7.1 with:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=d04c64d25929f08f9991535ecc8a33bdd31d395e

author	Caolán McNamara <caolanm@redhat.com>	2020-08-13 15:48:16 +0100
committer	Caolán McNamara <caolanm@redhat.com>	2020-08-16 21:14:34 +0200
commit d04c64d25929f08f9991535ecc8a33bdd31d395e (patch)

tdf#134439 honor FN_PARAM_PAM arguments
Comment 1 Takenori Yasuda 2025-05-08 08:04:52 UTC
Reproduced.

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded Jumbo


Also in Safe Mode. 

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: default; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded