Created attachment 171677 [details] Document which demonstrates the bug I have a a document with a table of contents, some chapters and some paragraphs with hidden text. In the LibreOffice Writer settings, hidden text is set to be NOT printed. Chapter 2 e.g. sits on page 2 when I edit the document in writer, because the hidden text is shown. When I view the document in print preview, when I print the document or when I export the document to PDF, chapter 2 sits on page 1, because the hidden text is NOT shown. However, the page numbers in the TOC do not reflect this difference. The TOC keeps showing chapter 2 on page 2, regardless of the current mode (edit, print preview, print, PDF export). And there seems to be no way to tell the TOC to reflect the chapter page numbers when hidden text is NOT shown. See the attached document as an example for this behaviour.
I can't confim it with Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 1675a68526c43c6c6e4dc850ee911f0c1de75c88 CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL I opened attachment 171677 [details] => in TOC chapter 2 is on page 2 Update index => in TOC chapter 2 is on page 1 Export to PDF => in TOC chapter 2 is on page 1
Created attachment 172234 [details] Screenshot of the document - ensure that your settings makes it looking like this
Dieter, when you open the document, is Header 2 on page 2? Do you see the paragraphs with hidden blue 'a's? If not, then you have to make the hidden text visible on your screen by enabling the option "Hidden characters" which can be found under Tools | Options | LibreOffice Writer | Formatting Aids | Display Formatting It is also important to save the document locally. LibreOffice does not apply this change when the document is opened right from the download - at least on my computer. Note, that the above option makes the hidden text visible on the screen only. It remains hidden in the PDF, in the print preview and in the printout. Hence, the TOC should react accordingly to this difference.
(In reply to temporary2017 from comment #3) > Dieter, when you open the document, is Header 2 on page 2? > Do you see the paragraphs with hidden blue 'a's? Thanks for screenshot. It's always good, to provide detailed steps to reproduce 1. Open attachment 171677 [details] 2. Make sure, that hidden characters are displayed (Tools => Options => LibreOffice Writer => Formatting Aids 3. Update index(perhaps not necessary) 4. Export to PDF Actual result: In PDF page number of chapter 2 is "2", although it is part of page I'm not a developer, so I'm not sure, if it is possible that TOC takes into account hidden characters. So perhaps a WONTFIX, but let's ask developers Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 1675a68526c43c6c6e4dc850ee911f0c1de75c88 CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL
Dear temporary2017, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug still present in Version: 7.5.3.2 (X86_64).