Bug 131194 - TOC ignores the page-number offset
Summary: TOC ignores the page-number offset
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes Fields-Page-Number
  Show dependency treegraph
 
Reported: 2020-03-07 01:53 UTC by TorrAB
Modified: 2022-03-31 13:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
file with pages 0, 1, … (17.84 KB, application/vnd.oasis.opendocument.text)
2020-03-07 01:56 UTC, TorrAB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TorrAB 2020-03-07 01:53:47 UTC
Description:
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.

Actual Results:
TOC shows page-numbers without offset

Expected Results:
TOC should show page-numbers as they appear in header.


Reproducible: Always


User Profile Reset: No



Additional Info:
none
Comment 1 TorrAB 2020-03-07 01:56:49 UTC
Created attachment 158459 [details]
file with pages 0, 1, …
Comment 2 Dieter 2020-03-07 08:56:48 UTC
I confirm it with

Version: 7.0.0.0.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
Calc: threaded

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.