https://bugs.documentfoundation.org/show_bug.cgi?id=165472
Bug ID: 165472
Summary: Hidden sections breaks page cross-references in text.
Product: LibreOffice
Version: 25.2.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Hidden sections breaks page cross-references in text.
Using the file https://nextcloud.documentfoundation.org/s/dpnf4tsZLRMW2ic which
is the Writer Guide 25.2 .
Let's explain the issue:
Each chapter in the book has a section named SEC_COPYRIGHT.
The section SEC_COPYRIGHT holds the copyright bla-bla-bla and the chapter's
table of contents.
The section SEC_COPYRIGHT visibility is controlled by a variable named "book".
It is the "1" just after the first paragraph of the book just after the cover.
When "book eq 1" the chapter section SEC_COPYRIGHT is hidden.
When "book" is something else or undefined, the section SEC_COPYRIGHT is shown.
This allows us to compile the book by hiding the chapter's copyright and ToC
section.
The page references are misplaced because of the hidden sections when "book eq
1"
To see the issue, search the string "on page". Click on the page number that
follows "on page".
To verify, change the variable book to "0".
The book will show all the sections SEC_COPYRIGHT, the main ToC will show the
new entries, and the number of pages will increase to ~550 pages.
But now you can click on the reference "on page NNN" and you will land in the
right page.
Note: The bad cross-references "on page" are exported to PDF as well.
--
You are receiving this mail because:
You are the assignee for the bug.