Bug 160843 - Page numbers do not reset
Summary: Page numbers do not reset
Status: VERIFIED FIXED
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: Björn Michaelsen
URL:
Whiteboard: target:25.2.0 target:24.8.1 target:24...
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Fields-Page-Number
  Show dependency treegraph
 
Reported: 2024-04-27 13:31 UTC by David
Modified: 2024-09-02 08:45 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Page number example (9.74 KB, application/vnd.oasis.opendocument.text)
2024-04-27 13:31 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2024-04-27 13:31:29 UTC
Created attachment 193878 [details]
Page number example

A regression was introduced in version 24.2.0. See attached document. It works properly in version 7.6.6. The Heading 1 style is set to insert a new page break with a First Page style and to also restart the page numbering with page number one. As of version 24.2.0, the page numbers are not reset.
Comment 1 m_a_riosv 2024-04-27 23:04:59 UTC
Reproducible with
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
and
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ea43cbbb7371a743f470d949762a0e92f196e652
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded

regression from
Version: 7.6.6.3 (X86_64) / LibreOffice Community
Build ID: d97b2716a9a4a2ce1391dee1765565ea469b0ae7
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES Calc: CL threaded
Comment 2 gladys 2024-05-09 15:43:23 UTC Comment hidden (obsolete)
Comment 3 Buovjaga 2024-05-10 05:37:40 UTC Comment hidden (obsolete)
Comment 4 gladys 2024-05-11 06:12:53 UTC
Bibisected with windows 10, version 24.2 which points to 7f85415a2f07d62bf688cb33680054940d4dd7f1 

Author:     Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
AuthorDate: 2023-07-30 09:01:30 +0200

commit message: move SwVirtPageNumInfo to SfxHint
              - also remove now obsolete GetInfo overrides
Comment 5 Björn Michaelsen 2024-07-31 15:12:50 UTC
proposed patch: https://gerrit.libreoffice.org/c/core/+/171329
Comment 6 Buovjaga 2024-07-31 16:48:01 UTC
(In reply to Björn Michaelsen from comment #5)
> proposed patch: https://gerrit.libreoffice.org/c/core/+/171329

I built with the patch and confirm it fixes the issue.
Comment 7 Commit Notification 2024-08-01 11:50:06 UTC
Bjoern Michaelsen committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/39fd178b86608ebb0717bf15992bdf6b16d6e92a

tdf#160843: fix page count reset

It will be available in 25.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.
Comment 8 Björn Michaelsen 2024-08-01 20:19:38 UTC
(In reply to Buovjaga from comment #6)
> I built with the patch and confirm it fixes the issue.
thus resolving as fixed.
Comment 9 Commit Notification 2024-08-02 09:13:58 UTC
Bjoern Michaelsen committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/65d6ff10cea3641509683e407695589b269ff1dd

tdf#160843: fix page count reset

It will be available in 24.8.1.

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.
Comment 10 Commit Notification 2024-08-21 08:02:37 UTC
Bjoern Michaelsen committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/50e817ed03ccc201b8f6207801608a4414421cf0

tdf#160843: fix page count reset

It will be available in 24.2.7.

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.
Comment 11 Commit Notification 2024-09-02 08:45:47 UTC
Bjoern Michaelsen committed a patch related to this issue.
It has been pushed to "libreoffice-24-2-6":

https://git.libreoffice.org/core/commit/cbac5cfee3c9f58bf670fa2a79024dd296711c6b

tdf#160843: fix page count reset

It will be available in 24.2.6.

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.