In file pages03.odt, pages are numbered from 0, with a page-number offset=-1, but the TOC ignores this offset and shows numbers as 2, 3, 4 instead of 1, 2, 3.
Steps to Reproduce:
1.make a multi-page doc, with a Heading2 in each page
2.insert a page number in header.
3.edit (R-click) the field page-number, set its offset=-1
4.insert a TOC, which list all Heading2's and their page-numbers —wrong, without offset.
TOC shows page-numbers without offset
TOC should show page-numbers as they appear in header.
User Profile Reset: No
Created attachment 158459 [details]
file with pages 0, 1, …
I confirm it with
Version: 220.127.116.11.alpha0+ (x64)
Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win;
Locale: de-DE (de_DE); UI-Language: en-GB
I think, problem is a little bit broader. If I insert a cross reference and insert reference to page, I recieve the same wrong result.