Bug 134171 - Custom Styles disappear from TOC
Summary: Custom Styles disappear from TOC
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2020-06-20 21:41 UTC by Mike Sapsard
Modified: 2020-06-21 06:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

How the TOC should look. (71.18 KB, image/png)
2020-06-20 21:43 UTC, Mike Sapsard
Styles Definition (69.01 KB, image/png)
2020-06-20 21:45 UTC, Mike Sapsard
TOC Styles (66.43 KB, image/png)
2020-06-20 21:47 UTC, Mike Sapsard
Test file (2.20 MB, application/vnd.oasis.opendocument.text)
2020-06-20 21:48 UTC, Mike Sapsard

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Sapsard 2020-06-20 21:41:37 UTC
Custom styles in Writer allow creating headings like 'heading F' to produce headings like 'F1 First Heading' work at first, producing entries in the TOC, but suddenly fail and cannot be recovered in the document.

Steps to Reproduce:
1.Create new file
2.Create 3 different custom headings of form A1 Heading A, B1 Heading B, AA1 Heading AA. They have to be at heading levels 3, 4, 5. 
3.Create table of contents.
4.Edit table of contents to have levels 1, 2, 3, 3, 3 so that the headings at levels 3, 4, 5 all show at level 3 in the TOC.
5.Save file and adjust TOC display several times.
6. Option to ensure kiss of death save as docx and  open again.

Actual Results:
At first the TOC appeared as expected. See attachment 1.

Expected Results:
The TOC appeared as in attachment 2. I could not recover the original even though the setup screens all looked correct and I closed LO and reopened it.

Reproducible: Always

User Profile Reset: Yes

OpenGL enabled: Yes

Additional Info:
There are three screen shot attachments.
Comment 1 Mike Sapsard 2020-06-20 21:43:49 UTC
Created attachment 162235 [details]
How the TOC should look.
Comment 2 Mike Sapsard 2020-06-20 21:45:24 UTC
Created attachment 162236 [details]
Styles Definition
Comment 3 Mike Sapsard 2020-06-20 21:47:08 UTC
Created attachment 162237 [details]
TOC Styles
Comment 4 Mike Sapsard 2020-06-20 21:48:44 UTC
Created attachment 162238 [details]
Test file

This is a cut down version of the affected document.
Comment 5 Mike Sapsard 2020-06-21 06:26:09 UTC
I was obviously working too late. I saved the document with a new name, and deleted the TOC. I then recreated the TOC and it was perfect.