Created attachment 102300 [details] A document with a TOC that becomes empty after update. Ways to simulate bug: 1) Create a TOC following the standard method -- i.e. defining a few lines as Headers 1, Header 2, Header 3, etc. and the rest as body. Save it. 2) Open saved document, and update the TOC - right-click on TOC, select "Update Index/Table". 3) Only the Header will remain and the rest becomes empty, and there appear to be no way to recreate the TOC. A work around that works: 1) Save the document as do a .doc or .docx file. 2) Open the document in LO and update the TOC, and it works fine. I searched and couldn't find a bug report on this. I've attached a document that displays this behaviour for your use if needed.
In the template file attached to this bug, the T.O.C. is defined with "Create from Additional Styles" but there are no additional styles selected. It seems entirely correct that "Update Table/Index" removes all the generated content of the table. If there is a problem, it is a question of how the definition came to be the way it is. For my examination of the template, I used LibreOffice built and running on Linux. Perhaps LibreOffice on Windows shows a different definition for the toc. What do you think, Ve.? Please set bug status back to UNCONFIRMED when you respond. Terry.
Bug 79358 seems adequate to explain the damaged definition of the T.O.C., so I am resolving this bug as a DUP. Ve., If bug 79358 does not seem to describe the behaviour you reported, feel free to repoen this bug report. Terry. *** This bug has been marked as a duplicate of bug 79358 ***
Yes, it's a duplicate.