Bug 80945 - Table of Contents Becomes Empty after Updating a Saved Document
Summary: Table of Contents Becomes Empty after Updating a Saved Document
Status: RESOLVED DUPLICATE of bug 79358
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.2 rc
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-05 12:34 UTC by Ve. Elanjelian
Modified: 2014-07-07 00:30 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A document with a TOC that becomes empty after update. (41.36 KB, application/vnd.oasis.opendocument.text-template)
2014-07-05 12:34 UTC, Ve. Elanjelian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ve. Elanjelian 2014-07-05 12:34:11 UTC
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.
Comment 1 Terrence Enger 2014-07-05 21:38:19 UTC
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.
Comment 2 Terrence Enger 2014-07-06 01:12:32 UTC
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 ***
Comment 3 Ve. Elanjelian 2014-07-07 00:30:57 UTC
Yes, it's a duplicate.